
KeyInfo * sqlite3KeyInfoAlloc(sqlite3 *db,int N,int X)

{
  int iVar1;
  u8 uVar2;
  uint uVar3;
  sqlite3 *db_00;
  KeyInfo *pKVar4;
  int extraout_ECX;
  u16 uVar5;
  undefined8 uVar6;
  u64 in_stack_ffffffd4;
  
  uVar6 = __x86_get_pc_thunk_di();
  db_00 = (sqlite3 *)uVar6;
  if (db_00->mallocFailed == '\0') {
    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;
    pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4);
    if (pKVar4 != (KeyInfo *)0x0) {
      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);
      pKVar4->nKeyField = uVar5;
      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);
      pKVar4->nAllField = uVar5 + (short)extraout_ECX;
      uVar2 = db_00->enc;
      pKVar4->db = db_00;
      pKVar4->enc = uVar2;
      pKVar4->nRef = 1;
      memset(pKVar4 + 1,0,iVar1 * 5 - 4);
      return pKVar4;
    }
  }
  uVar3._0_1_ = db_00->temp_store;
  uVar3._1_1_ = db_00->mallocFailed;
  uVar3._2_1_ = db_00->bBenignMalloc;
  uVar3._3_1_ = db_00->dfltLockMode;
  if ((uVar3 & 0xffff00) != 0) {
    return (KeyInfo *)0x0;
  }
  sqlite3OomFault(db_00);
  return (KeyInfo *)0x0;
}



undefined4 * FUN_000291b0(void)

{
  int iVar1;
  undefined1 uVar2;
  int iVar3;
  undefined4 *puVar4;
  int extraout_ECX;
  short sVar5;
  undefined8 uVar6;
  
  uVar6 = FUN_0001af1a();
  iVar3 = (int)uVar6;
  if (*(char *)(iVar3 + 0x4d) == '\0') {
    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;
    puVar4 = (undefined4 *)FUN_000283a0();
    if (puVar4 != (undefined4 *)0x0) {
      sVar5 = (short)((ulonglong)uVar6 >> 0x20);
      *(short *)((int)puVar4 + 6) = sVar5;
      puVar4[4] = puVar4 + iVar1 + 5;
      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;
      uVar2 = *(undefined1 *)(iVar3 + 0x4a);
      puVar4[3] = iVar3;
      *(undefined1 *)(puVar4 + 1) = uVar2;
      *puVar4 = 1;
      memset(puVar4 + 6,0,iVar1 * 5 - 4);
      return puVar4;
    }
  }
  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {
    return (undefined4 *)0x0;
  }
  FUN_00028380();
  return (undefined4 *)0x0;
}


PUSH EBP
PUSH EDI
CALL 0x0001af1a
ADD EDI,0x121d1d
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x1c
CMP byte ptr [EAX + 0x4d],0x0
MOV dword ptr [ESP + 0x8],EDI
JNZ 0x00029240
LEA EDI,[EDX + ECX*0x1]
MOV ESI,EDX
MOV EBP,ECX
XOR ECX,ECX
LEA EAX,[EDI + EDI*0x4]
LEA EDX,[EAX + 0x14]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,EBX
CALL 0x000283a0
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00029240
MOV word ptr [EDX + 0x6],SI
LEA EAX,[EAX + EDI*0x4 + 0x14]
ADD ESI,EBP
SUB ESP,0x4
MOV dword ptr [EDX + 0x10],EAX
LEA ECX,[EDX + 0x18]
MOV word ptr [EDX + 0x8],SI
MOVZX EAX,byte ptr [EBX + 0x4a]
MOV dword ptr [EDX + 0xc],EBX
MOV byte ptr [EDX + 0x4],AL
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x10],EDX
SUB EAX,0x4
MOV dword ptr [EDX],0x1
PUSH EAX
PUSH 0x0
PUSH ECX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x00014280
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
MOV EAX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EDX,EDX
TEST dword ptr [EBX + 0x4c],0xffff00
JNZ 0x00029234
MOV EAX,EBX
MOV dword ptr [ESP + 0x8],EDX
CALL 0x00028380
MOV EDX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
MOV EAX,EDX
POP EDI
POP EBP
RET
(translation_unit "undefined4 * FUN_000291b0(void)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_000291b0(void)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_000291b0(void)" * (function_declarator "FUN_000291b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "short sVar5;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = FUN_0001af1a();" (assignment_expression "uVar6 = FUN_0001af1a()" identifier = (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (int)uVar6;" (assignment_expression "iVar3 = (int)uVar6" identifier = (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }" if (parenthesized_expression "(*(char *)(iVar3 + 0x4d) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x4d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x4d)" * (cast_expression "(char *)(iVar3 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4d)" ( (binary_expression "iVar3 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }" { (expression_statement "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;" (assignment_expression "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" identifier = (binary_expression "(int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + identifier)) ;) (expression_statement "puVar4 = (undefined4 *)FUN_000283a0();" (assignment_expression "puVar4 = (undefined4 *)FUN_000283a0()" identifier = (cast_expression "(undefined4 *)FUN_000283a0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000283a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }" { (expression_statement "sVar5 = (short)((ulonglong)uVar6 >> 0x20);" (assignment_expression "sVar5 = (short)((ulonglong)uVar6 >> 0x20)" identifier = (cast_expression "(short)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(short *)((int)puVar4 + 6) = sVar5;" (assignment_expression "*(short *)((int)puVar4 + 6) = sVar5" (pointer_expression "*(short *)((int)puVar4 + 6)" * (cast_expression "(short *)((int)puVar4 + 6)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 6)" ( (binary_expression "(int)puVar4 + 6" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "puVar4[4] = puVar4 + iVar1 + 5;" (assignment_expression "puVar4[4] = puVar4 + iVar1 + 5" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = (binary_expression "puVar4 + iVar1 + 5" (binary_expression "puVar4 + iVar1" identifier + identifier) + number_literal)) ;) (expression_statement "*(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;" (assignment_expression "*(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX" (pointer_expression "*(short *)(puVar4 + 2)" * (cast_expression "(short *)(puVar4 + 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) = (binary_expression "sVar5 + (short)extraout_ECX" identifier + (cast_expression "(short)extraout_ECX" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "uVar2 = *(undefined1 *)(iVar3 + 0x4a);" (assignment_expression "uVar2 = *(undefined1 *)(iVar3 + 0x4a)" identifier = (pointer_expression "*(undefined1 *)(iVar3 + 0x4a)" * (cast_expression "(undefined1 *)(iVar3 + 0x4a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4a)" ( (binary_expression "iVar3 + 0x4a" identifier + number_literal) ))))) ;) (expression_statement "puVar4[3] = iVar3;" (assignment_expression "puVar4[3] = iVar3" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(puVar4 + 1) = uVar2;" (assignment_expression "*(undefined1 *)(puVar4 + 1) = uVar2" (pointer_expression "*(undefined1 *)(puVar4 + 1)" * (cast_expression "(undefined1 *)(puVar4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar4 = 1;" (assignment_expression "*puVar4 = 1" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "memset(puVar4 + 6,0,iVar1 * 5 - 4);" (call_expression "memset(puVar4 + 6,0,iVar1 * 5 - 4)" identifier (argument_list "(puVar4 + 6,0,iVar1 * 5 - 4)" ( (binary_expression "puVar4 + 6" identifier + number_literal) , number_literal , (binary_expression "iVar1 * 5 - 4" (binary_expression "iVar1 * 5" identifier * number_literal) - number_literal) ))) ;) (return_statement "return puVar4;" return identifier ;) })) })) (if_statement "if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0)" ( (binary_expression "(*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0" (parenthesized_expression "(*(uint *)(iVar3 + 0x4c) & 0xffff00)" ( (binary_expression "*(uint *)(iVar3 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(iVar3 + 0x4c)" * (cast_expression "(uint *)(iVar3 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4c)" ( (binary_expression "iVar3 + 0x4c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "FUN_00028380();" (call_expression "FUN_00028380()" identifier (argument_list "()" ( ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "KeyInfo * sqlite3KeyInfoAlloc(sqlite3 *db,int N,int X)\n\n{\n  int iVar1;\n  u8 uVar2;\n  uint uVar3;\n  sqlite3 *db_00;\n  KeyInfo *pKVar4;\n  int extraout_ECX;\n  u16 uVar5;\n  undefined8 uVar6;\n  u64 in_stack_ffffffd4;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  db_00 = (sqlite3 *)uVar6;\n  if (db_00->mallocFailed == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4);\n    if (pKVar4 != (KeyInfo *)0x0) {\n      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);\n      pKVar4->nKeyField = uVar5;\n      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);\n      pKVar4->nAllField = uVar5 + (short)extraout_ECX;\n      uVar2 = db_00->enc;\n      pKVar4->db = db_00;\n      pKVar4->enc = uVar2;\n      pKVar4->nRef = 1;\n      memset(pKVar4 + 1,0,iVar1 * 5 - 4);\n      return pKVar4;\n    }\n  }\n  uVar3._0_1_ = db_00->temp_store;\n  uVar3._1_1_ = db_00->mallocFailed;\n  uVar3._2_1_ = db_00->bBenignMalloc;\n  uVar3._3_1_ = db_00->dfltLockMode;\n  if ((uVar3 & 0xffff00) != 0) {\n    return (KeyInfo *)0x0;\n  }\n  sqlite3OomFault(db_00);\n  return (KeyInfo *)0x0;\n}\n\n" (function_definition "KeyInfo * sqlite3KeyInfoAlloc(sqlite3 *db,int N,int X)\n\n{\n  int iVar1;\n  u8 uVar2;\n  uint uVar3;\n  sqlite3 *db_00;\n  KeyInfo *pKVar4;\n  int extraout_ECX;\n  u16 uVar5;\n  undefined8 uVar6;\n  u64 in_stack_ffffffd4;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  db_00 = (sqlite3 *)uVar6;\n  if (db_00->mallocFailed == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4);\n    if (pKVar4 != (KeyInfo *)0x0) {\n      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);\n      pKVar4->nKeyField = uVar5;\n      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);\n      pKVar4->nAllField = uVar5 + (short)extraout_ECX;\n      uVar2 = db_00->enc;\n      pKVar4->db = db_00;\n      pKVar4->enc = uVar2;\n      pKVar4->nRef = 1;\n      memset(pKVar4 + 1,0,iVar1 * 5 - 4);\n      return pKVar4;\n    }\n  }\n  uVar3._0_1_ = db_00->temp_store;\n  uVar3._1_1_ = db_00->mallocFailed;\n  uVar3._2_1_ = db_00->bBenignMalloc;\n  uVar3._3_1_ = db_00->dfltLockMode;\n  if ((uVar3 & 0xffff00) != 0) {\n    return (KeyInfo *)0x0;\n  }\n  sqlite3OomFault(db_00);\n  return (KeyInfo *)0x0;\n}" type_identifier (pointer_declarator "* sqlite3KeyInfoAlloc(sqlite3 *db,int N,int X)" * (function_declarator "sqlite3KeyInfoAlloc(sqlite3 *db,int N,int X)" identifier (parameter_list "(sqlite3 *db,int N,int X)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int N" primitive_type identifier) , (parameter_declaration "int X" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  u8 uVar2;\n  uint uVar3;\n  sqlite3 *db_00;\n  KeyInfo *pKVar4;\n  int extraout_ECX;\n  u16 uVar5;\n  undefined8 uVar6;\n  u64 in_stack_ffffffd4;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  db_00 = (sqlite3 *)uVar6;\n  if (db_00->mallocFailed == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4);\n    if (pKVar4 != (KeyInfo *)0x0) {\n      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);\n      pKVar4->nKeyField = uVar5;\n      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);\n      pKVar4->nAllField = uVar5 + (short)extraout_ECX;\n      uVar2 = db_00->enc;\n      pKVar4->db = db_00;\n      pKVar4->enc = uVar2;\n      pKVar4->nRef = 1;\n      memset(pKVar4 + 1,0,iVar1 * 5 - 4);\n      return pKVar4;\n    }\n  }\n  uVar3._0_1_ = db_00->temp_store;\n  uVar3._1_1_ = db_00->mallocFailed;\n  uVar3._2_1_ = db_00->bBenignMalloc;\n  uVar3._3_1_ = db_00->dfltLockMode;\n  if ((uVar3 & 0xffff00) != 0) {\n    return (KeyInfo *)0x0;\n  }\n  sqlite3OomFault(db_00);\n  return (KeyInfo *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "u8 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "sqlite3 *db_00;" type_identifier (pointer_declarator "*db_00" * identifier) ;) (declaration "KeyInfo *pKVar4;" type_identifier (pointer_declarator "*pKVar4" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "u16 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "u64 in_stack_ffffffd4;" type_identifier identifier ;) (expression_statement "uVar6 = __x86_get_pc_thunk_di();" (assignment_expression "uVar6 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "db_00 = (sqlite3 *)uVar6;" (assignment_expression "db_00 = (sqlite3 *)uVar6" identifier = (cast_expression "(sqlite3 *)uVar6" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (db_00->mallocFailed == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4);\n    if (pKVar4 != (KeyInfo *)0x0) {\n      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);\n      pKVar4->nKeyField = uVar5;\n      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);\n      pKVar4->nAllField = uVar5 + (short)extraout_ECX;\n      uVar2 = db_00->enc;\n      pKVar4->db = db_00;\n      pKVar4->enc = uVar2;\n      pKVar4->nRef = 1;\n      memset(pKVar4 + 1,0,iVar1 * 5 - 4);\n      return pKVar4;\n    }\n  }" if (parenthesized_expression "(db_00->mallocFailed == '\0')" ( (binary_expression "db_00->mallocFailed == '\0'" (field_expression "db_00->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4);\n    if (pKVar4 != (KeyInfo *)0x0) {\n      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);\n      pKVar4->nKeyField = uVar5;\n      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);\n      pKVar4->nAllField = uVar5 + (short)extraout_ECX;\n      uVar2 = db_00->enc;\n      pKVar4->db = db_00;\n      pKVar4->enc = uVar2;\n      pKVar4->nRef = 1;\n      memset(pKVar4 + 1,0,iVar1 * 5 - 4);\n      return pKVar4;\n    }\n  }" { (expression_statement "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;" (assignment_expression "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" identifier = (binary_expression "(int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + identifier)) ;) (expression_statement "pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4);" (assignment_expression "pKVar4 = (KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4)" identifier = (cast_expression "(KeyInfo *)dbMallocRawFinish(db_00,in_stack_ffffffd4)" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(db_00,in_stack_ffffffd4)" identifier (argument_list "(db_00,in_stack_ffffffd4)" ( identifier , identifier ))))) ;) (if_statement "if (pKVar4 != (KeyInfo *)0x0) {\n      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);\n      pKVar4->nKeyField = uVar5;\n      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);\n      pKVar4->nAllField = uVar5 + (short)extraout_ECX;\n      uVar2 = db_00->enc;\n      pKVar4->db = db_00;\n      pKVar4->enc = uVar2;\n      pKVar4->nRef = 1;\n      memset(pKVar4 + 1,0,iVar1 * 5 - 4);\n      return pKVar4;\n    }" if (parenthesized_expression "(pKVar4 != (KeyInfo *)0x0)" ( (binary_expression "pKVar4 != (KeyInfo *)0x0" identifier != (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = (u16)((ulonglong)uVar6 >> 0x20);\n      pKVar4->nKeyField = uVar5;\n      pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);\n      pKVar4->nAllField = uVar5 + (short)extraout_ECX;\n      uVar2 = db_00->enc;\n      pKVar4->db = db_00;\n      pKVar4->enc = uVar2;\n      pKVar4->nRef = 1;\n      memset(pKVar4 + 1,0,iVar1 * 5 - 4);\n      return pKVar4;\n    }" { (expression_statement "uVar5 = (u16)((ulonglong)uVar6 >> 0x20);" (assignment_expression "uVar5 = (u16)((ulonglong)uVar6 >> 0x20)" identifier = (call_expression "(u16)((ulonglong)uVar6 >> 0x20)" (parenthesized_expression "(u16)" ( identifier )) (argument_list "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pKVar4->nKeyField = uVar5;" (assignment_expression "pKVar4->nKeyField = uVar5" (field_expression "pKVar4->nKeyField" identifier -> field_identifier) = identifier) ;) (expression_statement "pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1);" (assignment_expression "pKVar4->aSortOrder = (u8 *)(pKVar4->aColl + iVar1)" (field_expression "pKVar4->aSortOrder" identifier -> field_identifier) = (cast_expression "(u8 *)(pKVar4->aColl + iVar1)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pKVar4->aColl + iVar1)" ( (binary_expression "pKVar4->aColl + iVar1" (field_expression "pKVar4->aColl" identifier -> field_identifier) + identifier) )))) ;) (expression_statement "pKVar4->nAllField = uVar5 + (short)extraout_ECX;" (assignment_expression "pKVar4->nAllField = uVar5 + (short)extraout_ECX" (field_expression "pKVar4->nAllField" identifier -> field_identifier) = (binary_expression "uVar5 + (short)extraout_ECX" identifier + (cast_expression "(short)extraout_ECX" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "uVar2 = db_00->enc;" (assignment_expression "uVar2 = db_00->enc" identifier = (field_expression "db_00->enc" identifier -> field_identifier)) ;) (expression_statement "pKVar4->db = db_00;" (assignment_expression "pKVar4->db = db_00" (field_expression "pKVar4->db" identifier -> field_identifier) = identifier) ;) (expression_statement "pKVar4->enc = uVar2;" (assignment_expression "pKVar4->enc = uVar2" (field_expression "pKVar4->enc" identifier -> field_identifier) = identifier) ;) (expression_statement "pKVar4->nRef = 1;" (assignment_expression "pKVar4->nRef = 1" (field_expression "pKVar4->nRef" identifier -> field_identifier) = number_literal) ;) (expression_statement "memset(pKVar4 + 1,0,iVar1 * 5 - 4);" (call_expression "memset(pKVar4 + 1,0,iVar1 * 5 - 4)" identifier (argument_list "(pKVar4 + 1,0,iVar1 * 5 - 4)" ( (binary_expression "pKVar4 + 1" identifier + number_literal) , number_literal , (binary_expression "iVar1 * 5 - 4" (binary_expression "iVar1 * 5" identifier * number_literal) - number_literal) ))) ;) (return_statement "return pKVar4;" return identifier ;) })) })) (expression_statement "uVar3._0_1_ = db_00->temp_store;" (assignment_expression "uVar3._0_1_ = db_00->temp_store" (field_expression "uVar3._0_1_" identifier . field_identifier) = (field_expression "db_00->temp_store" identifier -> field_identifier)) ;) (expression_statement "uVar3._1_1_ = db_00->mallocFailed;" (assignment_expression "uVar3._1_1_ = db_00->mallocFailed" (field_expression "uVar3._1_1_" identifier . field_identifier) = (field_expression "db_00->mallocFailed" identifier -> field_identifier)) ;) (expression_statement "uVar3._2_1_ = db_00->bBenignMalloc;" (assignment_expression "uVar3._2_1_ = db_00->bBenignMalloc" (field_expression "uVar3._2_1_" identifier . field_identifier) = (field_expression "db_00->bBenignMalloc" identifier -> field_identifier)) ;) (expression_statement "uVar3._3_1_ = db_00->dfltLockMode;" (assignment_expression "uVar3._3_1_ = db_00->dfltLockMode" (field_expression "uVar3._3_1_" identifier . field_identifier) = (field_expression "db_00->dfltLockMode" identifier -> field_identifier)) ;) (if_statement "if ((uVar3 & 0xffff00) != 0) {\n    return (KeyInfo *)0x0;\n  }" if (parenthesized_expression "((uVar3 & 0xffff00) != 0)" ( (binary_expression "(uVar3 & 0xffff00) != 0" (parenthesized_expression "(uVar3 & 0xffff00)" ( (binary_expression "uVar3 & 0xffff00" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (KeyInfo *)0x0;\n  }" { (return_statement "return (KeyInfo *)0x0;" return (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "sqlite3OomFault(db_00);" (call_expression "sqlite3OomFault(db_00)" identifier (argument_list "(db_00)" ( identifier ))) ;) (return_statement "return (KeyInfo *)0x0;" return (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 * FUN_000291b0(void)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_000291b0(void)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_000291b0(void)" * (function_declarator "FUN_000291b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "short sVar5;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = FUN_0001af1a();" (assignment_expression "uVar6 = FUN_0001af1a()" identifier = (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (int)uVar6;" (assignment_expression "iVar3 = (int)uVar6" identifier = (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }" if (parenthesized_expression "(*(char *)(iVar3 + 0x4d) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x4d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x4d)" * (cast_expression "(char *)(iVar3 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4d)" ( (binary_expression "iVar3 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }" { (expression_statement "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;" (assignment_expression "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" identifier = (binary_expression "(int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + identifier)) ;) (expression_statement "puVar4 = (undefined4 *)FUN_000283a0();" (assignment_expression "puVar4 = (undefined4 *)FUN_000283a0()" identifier = (cast_expression "(undefined4 *)FUN_000283a0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000283a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }" { (expression_statement "sVar5 = (short)((ulonglong)uVar6 >> 0x20);" (assignment_expression "sVar5 = (short)((ulonglong)uVar6 >> 0x20)" identifier = (cast_expression "(short)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(short *)((int)puVar4 + 6) = sVar5;" (assignment_expression "*(short *)((int)puVar4 + 6) = sVar5" (pointer_expression "*(short *)((int)puVar4 + 6)" * (cast_expression "(short *)((int)puVar4 + 6)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 6)" ( (binary_expression "(int)puVar4 + 6" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "puVar4[4] = puVar4 + iVar1 + 5;" (assignment_expression "puVar4[4] = puVar4 + iVar1 + 5" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = (binary_expression "puVar4 + iVar1 + 5" (binary_expression "puVar4 + iVar1" identifier + identifier) + number_literal)) ;) (expression_statement "*(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;" (assignment_expression "*(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX" (pointer_expression "*(short *)(puVar4 + 2)" * (cast_expression "(short *)(puVar4 + 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) = (binary_expression "sVar5 + (short)extraout_ECX" identifier + (cast_expression "(short)extraout_ECX" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "uVar2 = *(undefined1 *)(iVar3 + 0x4a);" (assignment_expression "uVar2 = *(undefined1 *)(iVar3 + 0x4a)" identifier = (pointer_expression "*(undefined1 *)(iVar3 + 0x4a)" * (cast_expression "(undefined1 *)(iVar3 + 0x4a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4a)" ( (binary_expression "iVar3 + 0x4a" identifier + number_literal) ))))) ;) (expression_statement "puVar4[3] = iVar3;" (assignment_expression "puVar4[3] = iVar3" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(puVar4 + 1) = uVar2;" (assignment_expression "*(undefined1 *)(puVar4 + 1) = uVar2" (pointer_expression "*(undefined1 *)(puVar4 + 1)" * (cast_expression "(undefined1 *)(puVar4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar4 = 1;" (assignment_expression "*puVar4 = 1" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "memset(puVar4 + 6,0,iVar1 * 5 - 4);" (call_expression "memset(puVar4 + 6,0,iVar1 * 5 - 4)" identifier (argument_list "(puVar4 + 6,0,iVar1 * 5 - 4)" ( (binary_expression "puVar4 + 6" identifier + number_literal) , number_literal , (binary_expression "iVar1 * 5 - 4" (binary_expression "iVar1 * 5" identifier * number_literal) - number_literal) ))) ;) (return_statement "return puVar4;" return identifier ;) })) })) (if_statement "if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0)" ( (binary_expression "(*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0" (parenthesized_expression "(*(uint *)(iVar3 + 0x4c) & 0xffff00)" ( (binary_expression "*(uint *)(iVar3 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(iVar3 + 0x4c)" * (cast_expression "(uint *)(iVar3 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4c)" ( (binary_expression "iVar3 + 0x4c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "FUN_00028380();" (call_expression "FUN_00028380()" identifier (argument_list "()" ( ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression (binary_expression IDENT * LIT) - LIT) ))) ;) (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined4 * FUN_000291b0(void)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_000291b0(void)" (* "*") (function_declarator "FUN_000291b0(void)" (identifier "FUN_000291b0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int extraout_ECX;\n  short sVar5;\n  undefined8 uVar6;\n  \n  uVar6 = FUN_0001af1a();\n  iVar3 = (int)uVar6;\n  if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }\n  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }\n  FUN_00028380();\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "short sVar5;" (sized_type_specifier "short" (short "short")) (identifier "sVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (expression_statement "uVar6 = FUN_0001af1a();" (assignment_expression "uVar6 = FUN_0001af1a()" (identifier "uVar6") (= "=") (call_expression "FUN_0001af1a()" (identifier "FUN_0001af1a") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = (int)uVar6;" (assignment_expression "iVar3 = (int)uVar6" (identifier "iVar3") (= "=") (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6"))) (; ";")) (if_statement "if (*(char *)(iVar3 + 0x4d) == '\0') {\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar3 + 0x4d) == '\0')" (( "(") (binary_expression "*(char *)(iVar3 + 0x4d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x4d)" (* "*") (cast_expression "(char *)(iVar3 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x4d)" (( "(") (binary_expression "iVar3 + 0x4d" (identifier "iVar3") (+ "+") (number_literal "0x4d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;\n    puVar4 = (undefined4 *)FUN_000283a0();\n    if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;" (assignment_expression "iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" (identifier "iVar1") (= "=") (binary_expression "(int)((ulonglong)uVar6 >> 0x20) + extraout_ECX" (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6")) (>> ">>") (number_literal "0x20")) () ")"))) (+ "+") (identifier "extraout_ECX"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)FUN_000283a0();" (assignment_expression "puVar4 = (undefined4 *)FUN_000283a0()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)FUN_000283a0()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000283a0()" (identifier "FUN_000283a0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }" (if "if") (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined4 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar5 = (short)((ulonglong)uVar6 >> 0x20);\n      *(short *)((int)puVar4 + 6) = sVar5;\n      puVar4[4] = puVar4 + iVar1 + 5;\n      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;\n      uVar2 = *(undefined1 *)(iVar3 + 0x4a);\n      puVar4[3] = iVar3;\n      *(undefined1 *)(puVar4 + 1) = uVar2;\n      *puVar4 = 1;\n      memset(puVar4 + 6,0,iVar1 * 5 - 4);\n      return puVar4;\n    }" ({ "{") (expression_statement "sVar5 = (short)((ulonglong)uVar6 >> 0x20);" (assignment_expression "sVar5 = (short)((ulonglong)uVar6 >> 0x20)" (identifier "sVar5") (= "=") (cast_expression "(short)((ulonglong)uVar6 >> 0x20)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "*(short *)((int)puVar4 + 6) = sVar5;" (assignment_expression "*(short *)((int)puVar4 + 6) = sVar5" (pointer_expression "*(short *)((int)puVar4 + 6)" (* "*") (cast_expression "(short *)((int)puVar4 + 6)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + 6)" (( "(") (binary_expression "(int)puVar4 + 6" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "6")) () ")")))) (= "=") (identifier "sVar5")) (; ";")) (expression_statement "puVar4[4] = puVar4 + iVar1 + 5;" (assignment_expression "puVar4[4] = puVar4 + iVar1 + 5" (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "puVar4 + iVar1 + 5" (binary_expression "puVar4 + iVar1" (identifier "puVar4") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "5"))) (; ";")) (expression_statement "*(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;" (assignment_expression "*(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX" (pointer_expression "*(short *)(puVar4 + 2)" (* "*") (cast_expression "(short *)(puVar4 + 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 2)" (( "(") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "sVar5 + (short)extraout_ECX" (identifier "sVar5") (+ "+") (cast_expression "(short)extraout_ECX" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "extraout_ECX")))) (; ";")) (expression_statement "uVar2 = *(undefined1 *)(iVar3 + 0x4a);" (assignment_expression "uVar2 = *(undefined1 *)(iVar3 + 0x4a)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined1 *)(iVar3 + 0x4a)" (* "*") (cast_expression "(undefined1 *)(iVar3 + 0x4a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x4a)" (( "(") (binary_expression "iVar3 + 0x4a" (identifier "iVar3") (+ "+") (number_literal "0x4a")) () ")"))))) (; ";")) (expression_statement "puVar4[3] = iVar3;" (assignment_expression "puVar4[3] = iVar3" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined1 *)(puVar4 + 1) = uVar2;" (assignment_expression "*(undefined1 *)(puVar4 + 1) = uVar2" (pointer_expression "*(undefined1 *)(puVar4 + 1)" (* "*") (cast_expression "(undefined1 *)(puVar4 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 1)" (( "(") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*puVar4 = 1;" (assignment_expression "*puVar4 = 1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "1")) (; ";")) (expression_statement "memset(puVar4 + 6,0,iVar1 * 5 - 4);" (call_expression "memset(puVar4 + 6,0,iVar1 * 5 - 4)" (identifier "memset") (argument_list "(puVar4 + 6,0,iVar1 * 5 - 4)" (( "(") (binary_expression "puVar4 + 6" (identifier "puVar4") (+ "+") (number_literal "6")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar1 * 5 - 4" (binary_expression "iVar1 * 5" (identifier "iVar1") (* "*") (number_literal "5")) (- "-") (number_literal "4")) () ")"))) (; ";")) (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}"))) (} "}"))) (if_statement "if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {\n    return (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0)" (( "(") (binary_expression "(*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0" (parenthesized_expression "(*(uint *)(iVar3 + 0x4c) & 0xffff00)" (( "(") (binary_expression "*(uint *)(iVar3 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(iVar3 + 0x4c)" (* "*") (cast_expression "(uint *)(iVar3 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x4c)" (( "(") (binary_expression "iVar3 + 0x4c" (identifier "iVar3") (+ "+") (number_literal "0x4c")) () ")")))) (& "&") (number_literal "0xffff00")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "FUN_00028380();" (call_expression "FUN_00028380()" (identifier "FUN_00028380") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_1 * function_1(type_2 *db,int N,int X)

{
  int var_5;
  type_3 uVar2;
  type_4 var_8;
  type_2 *db_00;
  type_1 *var_4;
  int var_2;
  type_5 var_6;
  type_6 uVar6;
  type_7 in_stack_ffffffd4;
  
  uVar6 = var_1();
  db_00 = (type_2 *)uVar6;
  if (db_00->mallocFailed == '\0') {
    var_5 = (int)((type_8)uVar6 >> 0x20) + var_2;
    var_4 = (type_1 *)var_3(db_00,in_stack_ffffffd4);
    if (var_4 != (type_1 *)0x0) {
      var_6 = (type_5)((type_8)uVar6 >> 0x20);
      var_4->nKeyField = var_6;
      var_4->aSortOrder = (type_3 *)(var_4->aColl + var_5);
      var_4->nAllField = var_6 + (short)var_2;
      uVar2 = db_00->enc;
      var_4->db = db_00;
      var_4->enc = uVar2;
      var_4->nRef = 1;
      var_7(var_4 + 1,0,var_5 * 5 - 4);
      return var_4;
    }
  }
  var_8._0_1_ = db_00->temp_store;
  var_8._1_1_ = db_00->mallocFailed;
  var_8._2_1_ = db_00->bBenignMalloc;
  var_8._3_1_ = db_00->dfltLockMode;
  if ((var_8 & 0xffff00) != 0) {
    return (type_1 *)0x0;
  }
  var_9(db_00);
  return (type_1 *)0x0;
}


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

undefined4 * MASKED(void)

{
  int iVar1;
  undefined1 uVar2;
  int iVar3;
  undefined4 *puVar4;
  int extraout_ECX;
  short sVar5;
  undefined8 uVar6;
  
  uVar6 = FUN_0001af1a();
  iVar3 = (int)uVar6;
  if (*(char *)(iVar3 + 0x4d) == '\0') {
    iVar1 = (int)((ulonglong)uVar6 >> 0x20) + extraout_ECX;
    puVar4 = (undefined4 *)FUN_000283a0();
    if (puVar4 != (undefined4 *)0x0) {
      sVar5 = (short)((ulonglong)uVar6 >> 0x20);
      *(short *)((int)puVar4 + 6) = sVar5;
      puVar4[4] = puVar4 + iVar1 + 5;
      *(short *)(puVar4 + 2) = sVar5 + (short)extraout_ECX;
      uVar2 = *(undefined1 *)(iVar3 + 0x4a);
      puVar4[3] = iVar3;
      *(undefined1 *)(puVar4 + 1) = uVar2;
      *puVar4 = 1;
      memset(puVar4 + 6,0,iVar1 * 5 - 4);
      return puVar4;
    }
  }
  if ((*(uint *)(iVar3 + 0x4c) & 0xffff00) != 0) {
    return (undefined4 *)0x0;
  }
  FUN_00028380();
  return (undefined4 *)0x0;
}

