
int jsonParse(JsonParse *pParse,sqlite3_context *pCtx,char *zJson)

{
  JsonParse *pParse_00;
  uint uVar1;
  int iVar2;
  byte *pbVar3;
  char *extraout_ECX;
  byte bVar4;
  sqlite3_context *pCtx_00;
  int unaff_EDI;
  uint uVar5;
  undefined8 uVar6;
  _func_void_void_ptr *in_stack_ffffffc8;
  
  uVar6 = __x86_get_pc_thunk_di();
  pCtx_00 = (sqlite3_context *)((ulonglong)uVar6 >> 0x20);
  pParse_00 = (JsonParse *)uVar6;
  uVar5 = (uint)&pParse_00->nAlloc & 0xfffffffc;
  pParse_00->nNode = 0;
  pParse_00->iHold = 0;
  uVar1 = 0;
  do {
    *(undefined4 *)(uVar5 + uVar1) = 0;
    uVar1 = uVar1 + 4;
  } while (uVar1 < ((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc));
  if (extraout_ECX != (char *)0x0) {
    pParse_00->zJson = extraout_ECX;
    iVar2 = jsonParseValue(pParse_00,0);
    if (pParse_00->oom == '\0') {
      if (0 < iVar2) {
        bVar4 = extraout_ECX[iVar2];
        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {
          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);
          do {
            bVar4 = *pbVar3;
            pbVar3 = pbVar3 + 1;
          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');
        }
        if (bVar4 == 0) {
          return 0;
        }
      }
      if (pCtx_00 != (sqlite3_context *)0x0) {
        pCtx_00->isError = 1;
        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);
      }
    }
    else if (pCtx_00 != (sqlite3_context *)0x0) {
      sqlite3_result_error_nomem(pCtx_00);
    }
    sqlite3_free(pParse_00->aNode);
    pParse_00->aNode = (JsonNode *)0x0;
    pParse_00->nNode = 0;
    pParse_00->nAlloc = 0;
    sqlite3_free(pParse_00->aUp);
    pParse_00->aUp = (u32 *)0x0;
  }
  return 1;
}



undefined4 FUN_0009e3a0(void)

{
  undefined4 *puVar1;
  uint uVar2;
  int iVar3;
  byte *pbVar4;
  int extraout_ECX;
  byte bVar5;
  int iVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = FUN_0003a401();
  iVar6 = (int)((ulonglong)uVar7 >> 0x20);
  puVar1 = (undefined4 *)uVar7;
  *puVar1 = 0;
  puVar1[7] = 0;
  uVar2 = 0;
  do {
    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;
    uVar2 = uVar2 + 4;
  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));
  if (extraout_ECX != 0) {
    puVar1[3] = extraout_ECX;
    iVar3 = FUN_0009dd20();
    if (*(char *)(puVar1 + 5) == '\0') {
      if (0 < iVar3) {
        bVar5 = *(byte *)(extraout_ECX + iVar3);
        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {
          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);
          do {
            bVar5 = *pbVar4;
            pbVar4 = pbVar4 + 1;
          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');
        }
        if (bVar5 == 0) {
          return 0;
        }
      }
      if (iVar6 != 0) {
        *(undefined4 *)(iVar6 + 0x14) = 1;
        FUN_0006f5d0(0xffffffff);
      }
    }
    else if (iVar6 != 0) {
      FUN_0004e320(iVar6);
    }
    FUN_00044000(puVar1[2]);
    puVar1[2] = 0;
    *puVar1 = 0;
    puVar1[1] = 0;
    FUN_00044000(puVar1[4]);
    puVar1[4] = 0;
  }
  return 1;
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
CALL 0x0003a401
ADD EDI,0x11ca7f
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,EAX
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EDI
LEA EDI,[EAX + 0x4]
AND EDI,0xfffffffc
MOV dword ptr [EAX],0x0
SUB ESI,EDI
MOV dword ptr [EAX + 0x1c],0x0
XOR EAX,EAX
ADD ESI,0x20
AND ESI,0xfffffffc
MOV dword ptr [EDI + EAX*0x1],EBP
ADD EAX,0x4
CMP EAX,ESI
JC 0x0009e3d9
MOV EAX,0x1
TEST ECX,ECX
JZ 0x0009e449
MOV dword ptr [EBX + 0xc],ECX
MOV ESI,EDX
MOV EAX,EBX
XOR EDX,EDX
MOV EDI,ECX
CALL 0x0009dd20
CMP byte ptr [EBX + 0x14],0x0
JZ 0x0009e458
TEST ESI,ESI
JZ 0x0009e412
SUB ESP,0xc
PUSH ESI
CALL 0x0004e320
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [EBX + 0x8]
CALL 0x00044000
POP EAX
PUSH dword ptr [EBX + 0x10]
MOV dword ptr [EBX + 0x8],0x0
MOV dword ptr [EBX],0x0
MOV dword ptr [EBX + 0x4],0x0
CALL 0x00044000
MOV dword ptr [EBX + 0x10],0x0
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EAX,EAX
JLE 0x0009e494
MOVZX ECX,byte ptr [EDI + EAX*0x1]
MOV EBP,dword ptr [ESP + 0xc]
CMP byte ptr [EBP + ECX*0x1 + 0xfffaacb8],0x0
MOV EDX,ECX
JZ 0x0009e48e
LEA EAX,[EDI + EAX*0x1 + 0x1]
LEA EDI,[EBP + 0xfffaacb8]
LEA ESI,[ESI]
MOVZX ECX,byte ptr [EAX]
ADD EAX,0x1
CMP byte ptr [EDI + ECX*0x1],0x0
MOV EDX,ECX
JNZ 0x0009e480
XOR EAX,EAX
TEST DL,DL
JZ 0x0009e449
TEST ESI,ESI
JZ 0x0009e412
SUB ESP,0xc
MOV dword ptr [ESI + 0x14],0x1
MOV ECX,0x1
PUSH -0x1
MOV EAX,dword ptr [ESP + 0x1c]
LEA EDX,[EAX + 0xfffa2179]
MOV EAX,dword ptr [ESI]
CALL 0x0006f5d0
ADD ESP,0x10
JMP 0x0009e412
(translation_unit "undefined4 FUN_0009e3a0(void)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0009e3a0(void)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_0009e3a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_0003a401();" (assignment_expression "uVar7 = FUN_0003a401()" identifier = (call_expression "FUN_0003a401()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar6 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1 = (undefined4 *)uVar7;" (assignment_expression "puVar1 = (undefined4 *)uVar7" identifier = (cast_expression "(undefined4 *)uVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  }" { (expression_statement "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" * (cast_expression "(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" ( (binary_expression "((uint)(puVar1 + 1) & 0xfffffffc) + uVar2" (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar2 = uVar2 + 4;" (assignment_expression "uVar2 = uVar2 + 4" identifier = (binary_expression "uVar2 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc))" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - ((uint)(puVar1 + 1) & 0xfffffffc))" ( (binary_expression "0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (if_statement "if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }" if (parenthesized_expression "(extraout_ECX != 0)" ( (binary_expression "extraout_ECX != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }" { (expression_statement "puVar1[3] = extraout_ECX;" (assignment_expression "puVar1[3] = extraout_ECX" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_0009dd20();" (assignment_expression "iVar3 = FUN_0009dd20()" identifier = (call_expression "FUN_0009dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" if (parenthesized_expression "(*(char *)(puVar1 + 5) == '\0')" ( (binary_expression "*(char *)(puVar1 + 5) == '\0'" (pointer_expression "*(char *)(puVar1 + 5)" * (cast_expression "(char *)(puVar1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }" { (if_statement "if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }" { (expression_statement "bVar5 = *(byte *)(extraout_ECX + iVar3);" (assignment_expression "bVar5 = *(byte *)(extraout_ECX + iVar3)" identifier = (pointer_expression "*(byte *)(extraout_ECX + iVar3)" * (cast_expression "(byte *)(extraout_ECX + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + iVar3)" ( (binary_expression "extraout_ECX + iVar3" identifier + identifier) ))))) ;) (if_statement "if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }" if (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" * (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar5" (binary_expression "unaff_EDI + 0xc7737" identifier + number_literal) + (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }" { (expression_statement "pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);" (assignment_expression "pbVar4 = (byte *)(extraout_ECX + 1 + iVar3)" identifier = (cast_expression "(byte *)(extraout_ECX + 1 + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 1 + iVar3)" ( (binary_expression "extraout_ECX + 1 + iVar3" (binary_expression "extraout_ECX + 1" identifier + number_literal) + identifier) )))) ;) (do_statement "do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');" do (compound_statement "{\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          }" { (expression_statement "bVar5 = *pbVar4;" (assignment_expression "bVar5 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" * (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar5" (binary_expression "unaff_EDI + 0xc7737" identifier + number_literal) + (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (if_statement "if (bVar5 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }" { (expression_statement "*(undefined4 *)(iVar6 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(iVar6 + 0x14) = 1" (pointer_expression "*(undefined4 *)(iVar6 + 0x14)" * (cast_expression "(undefined4 *)(iVar6 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0006f5d0(0xffffffff);" (call_expression "FUN_0006f5d0(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal ))) ;) })) }) (else_clause "else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" else (if_statement "if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0004e320(iVar6);\n    }" { (expression_statement "FUN_0004e320(iVar6);" (call_expression "FUN_0004e320(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) })))) (expression_statement "FUN_00044000(puVar1[2]);" (call_expression "FUN_00044000(puVar1[2])" identifier (argument_list "(puVar1[2])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00044000(puVar1[4]);" (call_expression "FUN_00044000(puVar1[4])" identifier (argument_list "(puVar1[4])" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int jsonParse(JsonParse *pParse,sqlite3_context *pCtx,char *zJson)\n\n{\n  JsonParse *pParse_00;\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  char *extraout_ECX;\n  byte bVar4;\n  sqlite3_context *pCtx_00;\n  int unaff_EDI;\n  uint uVar5;\n  undefined8 uVar6;\n  _func_void_void_ptr *in_stack_ffffffc8;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  pCtx_00 = (sqlite3_context *)((ulonglong)uVar6 >> 0x20);\n  pParse_00 = (JsonParse *)uVar6;\n  uVar5 = (uint)&pParse_00->nAlloc & 0xfffffffc;\n  pParse_00->nNode = 0;\n  pParse_00->iHold = 0;\n  uVar1 = 0;\n  do {\n    *(undefined4 *)(uVar5 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < ((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc));\n  if (extraout_ECX != (char *)0x0) {\n    pParse_00->zJson = extraout_ECX;\n    iVar2 = jsonParseValue(pParse_00,0);\n    if (pParse_00->oom == '\0') {\n      if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }\n      if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }\n    }\n    else if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }\n    sqlite3_free(pParse_00->aNode);\n    pParse_00->aNode = (JsonNode *)0x0;\n    pParse_00->nNode = 0;\n    pParse_00->nAlloc = 0;\n    sqlite3_free(pParse_00->aUp);\n    pParse_00->aUp = (u32 *)0x0;\n  }\n  return 1;\n}\n\n" (function_definition "int jsonParse(JsonParse *pParse,sqlite3_context *pCtx,char *zJson)\n\n{\n  JsonParse *pParse_00;\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  char *extraout_ECX;\n  byte bVar4;\n  sqlite3_context *pCtx_00;\n  int unaff_EDI;\n  uint uVar5;\n  undefined8 uVar6;\n  _func_void_void_ptr *in_stack_ffffffc8;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  pCtx_00 = (sqlite3_context *)((ulonglong)uVar6 >> 0x20);\n  pParse_00 = (JsonParse *)uVar6;\n  uVar5 = (uint)&pParse_00->nAlloc & 0xfffffffc;\n  pParse_00->nNode = 0;\n  pParse_00->iHold = 0;\n  uVar1 = 0;\n  do {\n    *(undefined4 *)(uVar5 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < ((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc));\n  if (extraout_ECX != (char *)0x0) {\n    pParse_00->zJson = extraout_ECX;\n    iVar2 = jsonParseValue(pParse_00,0);\n    if (pParse_00->oom == '\0') {\n      if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }\n      if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }\n    }\n    else if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }\n    sqlite3_free(pParse_00->aNode);\n    pParse_00->aNode = (JsonNode *)0x0;\n    pParse_00->nNode = 0;\n    pParse_00->nAlloc = 0;\n    sqlite3_free(pParse_00->aUp);\n    pParse_00->aUp = (u32 *)0x0;\n  }\n  return 1;\n}" primitive_type (function_declarator "jsonParse(JsonParse *pParse,sqlite3_context *pCtx,char *zJson)" identifier (parameter_list "(JsonParse *pParse,sqlite3_context *pCtx,char *zJson)" ( (parameter_declaration "JsonParse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "char *zJson" primitive_type (pointer_declarator "*zJson" * identifier)) ))) (compound_statement "{\n  JsonParse *pParse_00;\n  uint uVar1;\n  int iVar2;\n  byte *pbVar3;\n  char *extraout_ECX;\n  byte bVar4;\n  sqlite3_context *pCtx_00;\n  int unaff_EDI;\n  uint uVar5;\n  undefined8 uVar6;\n  _func_void_void_ptr *in_stack_ffffffc8;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  pCtx_00 = (sqlite3_context *)((ulonglong)uVar6 >> 0x20);\n  pParse_00 = (JsonParse *)uVar6;\n  uVar5 = (uint)&pParse_00->nAlloc & 0xfffffffc;\n  pParse_00->nNode = 0;\n  pParse_00->iHold = 0;\n  uVar1 = 0;\n  do {\n    *(undefined4 *)(uVar5 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < ((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc));\n  if (extraout_ECX != (char *)0x0) {\n    pParse_00->zJson = extraout_ECX;\n    iVar2 = jsonParseValue(pParse_00,0);\n    if (pParse_00->oom == '\0') {\n      if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }\n      if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }\n    }\n    else if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }\n    sqlite3_free(pParse_00->aNode);\n    pParse_00->aNode = (JsonNode *)0x0;\n    pParse_00->nNode = 0;\n    pParse_00->nAlloc = 0;\n    sqlite3_free(pParse_00->aUp);\n    pParse_00->aUp = (u32 *)0x0;\n  }\n  return 1;\n}" { (declaration "JsonParse *pParse_00;" type_identifier (pointer_declarator "*pParse_00" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "sqlite3_context *pCtx_00;" type_identifier (pointer_declarator "*pCtx_00" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "_func_void_void_ptr *in_stack_ffffffc8;" type_identifier (pointer_declarator "*in_stack_ffffffc8" * 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 "pCtx_00 = (sqlite3_context *)((ulonglong)uVar6 >> 0x20);" (assignment_expression "pCtx_00 = (sqlite3_context *)((ulonglong)uVar6 >> 0x20)" identifier = (cast_expression "(sqlite3_context *)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pParse_00 = (JsonParse *)uVar6;" (assignment_expression "pParse_00 = (JsonParse *)uVar6" identifier = (cast_expression "(JsonParse *)uVar6" ( (type_descriptor "JsonParse *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar5 = (uint)&pParse_00->nAlloc & 0xfffffffc;" (assignment_expression "uVar5 = (uint)&pParse_00->nAlloc & 0xfffffffc" identifier = (binary_expression "(uint)&pParse_00->nAlloc & 0xfffffffc" (binary_expression "(uint)&pParse_00->nAlloc" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "pParse_00->nAlloc" identifier -> field_identifier)) & number_literal)) ;) (expression_statement "pParse_00->nNode = 0;" (assignment_expression "pParse_00->nNode = 0" (field_expression "pParse_00->nNode" identifier -> field_identifier) = number_literal) ;) (expression_statement "pParse_00->iHold = 0;" (assignment_expression "pParse_00->iHold = 0" (field_expression "pParse_00->iHold" identifier -> field_identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(uVar5 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < ((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(uVar5 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  }" { (expression_statement "*(undefined4 *)(uVar5 + uVar1) = 0;" (assignment_expression "*(undefined4 *)(uVar5 + uVar1) = 0" (pointer_expression "*(undefined4 *)(uVar5 + uVar1)" * (cast_expression "(undefined4 *)(uVar5 + uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + uVar1)" ( (binary_expression "uVar5 + uVar1" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = uVar1 + 4;" (assignment_expression "uVar1 = uVar1 + 4" identifier = (binary_expression "uVar1 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 < ((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc))" ( (binary_expression "uVar1 < ((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc)" identifier < (parenthesized_expression "((int)pParse_00 + (0x20 - uVar5) & 0xfffffffc)" ( (binary_expression "(int)pParse_00 + (0x20 - uVar5) & 0xfffffffc" (binary_expression "(int)pParse_00 + (0x20 - uVar5)" (cast_expression "(int)pParse_00" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - uVar5)" ( (binary_expression "0x20 - uVar5" number_literal - identifier) ))) & number_literal) ))) )) ;) (if_statement "if (extraout_ECX != (char *)0x0) {\n    pParse_00->zJson = extraout_ECX;\n    iVar2 = jsonParseValue(pParse_00,0);\n    if (pParse_00->oom == '\0') {\n      if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }\n      if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }\n    }\n    else if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }\n    sqlite3_free(pParse_00->aNode);\n    pParse_00->aNode = (JsonNode *)0x0;\n    pParse_00->nNode = 0;\n    pParse_00->nAlloc = 0;\n    sqlite3_free(pParse_00->aUp);\n    pParse_00->aUp = (u32 *)0x0;\n  }" if (parenthesized_expression "(extraout_ECX != (char *)0x0)" ( (binary_expression "extraout_ECX != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pParse_00->zJson = extraout_ECX;\n    iVar2 = jsonParseValue(pParse_00,0);\n    if (pParse_00->oom == '\0') {\n      if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }\n      if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }\n    }\n    else if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }\n    sqlite3_free(pParse_00->aNode);\n    pParse_00->aNode = (JsonNode *)0x0;\n    pParse_00->nNode = 0;\n    pParse_00->nAlloc = 0;\n    sqlite3_free(pParse_00->aUp);\n    pParse_00->aUp = (u32 *)0x0;\n  }" { (expression_statement "pParse_00->zJson = extraout_ECX;" (assignment_expression "pParse_00->zJson = extraout_ECX" (field_expression "pParse_00->zJson" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = jsonParseValue(pParse_00,0);" (assignment_expression "iVar2 = jsonParseValue(pParse_00,0)" identifier = (call_expression "jsonParseValue(pParse_00,0)" identifier (argument_list "(pParse_00,0)" ( identifier , number_literal )))) ;) (if_statement "if (pParse_00->oom == '\0') {\n      if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }\n      if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }\n    }\n    else if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }" if (parenthesized_expression "(pParse_00->oom == '\0')" ( (binary_expression "pParse_00->oom == '\0'" (field_expression "pParse_00->oom" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }\n      if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }\n    }" { (if_statement "if (0 < iVar2) {\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n        bVar4 = extraout_ECX[iVar2];\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }\n        if (bVar4 == 0) {\n          return 0;\n        }\n      }" { (expression_statement "bVar4 = extraout_ECX[iVar2];" (assignment_expression "bVar4 = extraout_ECX[iVar2]" identifier = (subscript_expression "extraout_ECX[iVar2]" identifier [ identifier ])) ;) (if_statement "if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0') {\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }" if (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4)" * (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar4)" ( (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar4" (binary_expression "unaff_EDI + 0xc7737" identifier + number_literal) + (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);\n          do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');\n        }" { (expression_statement "pbVar3 = (byte *)(extraout_ECX + iVar2 + 1);" (assignment_expression "pbVar3 = (byte *)(extraout_ECX + iVar2 + 1)" identifier = (cast_expression "(byte *)(extraout_ECX + iVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + iVar2 + 1)" ( (binary_expression "extraout_ECX + iVar2 + 1" (binary_expression "extraout_ECX + iVar2" identifier + identifier) + number_literal) )))) ;) (do_statement "do {\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0');" do (compound_statement "{\n            bVar4 = *pbVar3;\n            pbVar3 = pbVar3 + 1;\n          }" { (expression_statement "bVar4 = *pbVar3;" (assignment_expression "bVar4 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar4)" * (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar4)" ( (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar4" (binary_expression "unaff_EDI + 0xc7737" identifier + number_literal) + (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (if_statement "if (bVar4 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(bVar4 == 0)" ( (binary_expression "bVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (pCtx_00 != (sqlite3_context *)0x0) {\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }" if (parenthesized_expression "(pCtx_00 != (sqlite3_context *)0x0)" ( (binary_expression "pCtx_00 != (sqlite3_context *)0x0" identifier != (cast_expression "(sqlite3_context *)0x0" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pCtx_00->isError = 1;\n        sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);\n      }" { (expression_statement "pCtx_00->isError = 1;" (assignment_expression "pCtx_00->isError = 1" (field_expression "pCtx_00->isError" identifier -> field_identifier) = number_literal) ;) (expression_statement "sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8);" (call_expression "sqlite3VdbeMemSetStr(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8)" identifier (argument_list "(pCtx_00->pOut,(char *)(unaff_EDI + 0xbebf8),1,0xff,in_stack_ffffffc8)" ( (field_expression "pCtx_00->pOut" identifier -> field_identifier) , (cast_expression "(char *)(unaff_EDI + 0xbebf8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xbebf8)" ( (binary_expression "unaff_EDI + 0xbebf8" identifier + number_literal) ))) , number_literal , number_literal , identifier ))) ;) })) }) (else_clause "else if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }" else (if_statement "if (pCtx_00 != (sqlite3_context *)0x0) {\n      sqlite3_result_error_nomem(pCtx_00);\n    }" if (parenthesized_expression "(pCtx_00 != (sqlite3_context *)0x0)" ( (binary_expression "pCtx_00 != (sqlite3_context *)0x0" identifier != (cast_expression "(sqlite3_context *)0x0" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3_result_error_nomem(pCtx_00);\n    }" { (expression_statement "sqlite3_result_error_nomem(pCtx_00);" (call_expression "sqlite3_result_error_nomem(pCtx_00)" identifier (argument_list "(pCtx_00)" ( identifier ))) ;) })))) (expression_statement "sqlite3_free(pParse_00->aNode);" (call_expression "sqlite3_free(pParse_00->aNode)" identifier (argument_list "(pParse_00->aNode)" ( (field_expression "pParse_00->aNode" identifier -> field_identifier) ))) ;) (expression_statement "pParse_00->aNode = (JsonNode *)0x0;" (assignment_expression "pParse_00->aNode = (JsonNode *)0x0" (field_expression "pParse_00->aNode" identifier -> field_identifier) = (cast_expression "(JsonNode *)0x0" ( (type_descriptor "JsonNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pParse_00->nNode = 0;" (assignment_expression "pParse_00->nNode = 0" (field_expression "pParse_00->nNode" identifier -> field_identifier) = number_literal) ;) (expression_statement "pParse_00->nAlloc = 0;" (assignment_expression "pParse_00->nAlloc = 0" (field_expression "pParse_00->nAlloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "sqlite3_free(pParse_00->aUp);" (call_expression "sqlite3_free(pParse_00->aUp)" identifier (argument_list "(pParse_00->aUp)" ( (field_expression "pParse_00->aUp" identifier -> field_identifier) ))) ;) (expression_statement "pParse_00->aUp = (u32 *)0x0;" (assignment_expression "pParse_00->aUp = (u32 *)0x0" (field_expression "pParse_00->aUp" identifier -> field_identifier) = (cast_expression "(u32 *)0x0" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0009e3a0(void)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0009e3a0(void)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_0009e3a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_0003a401();" (assignment_expression "uVar7 = FUN_0003a401()" identifier = (call_expression "FUN_0003a401()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar6 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1 = (undefined4 *)uVar7;" (assignment_expression "puVar1 = (undefined4 *)uVar7" identifier = (cast_expression "(undefined4 *)uVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  }" { (expression_statement "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" * (cast_expression "(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" ( (binary_expression "((uint)(puVar1 + 1) & 0xfffffffc) + uVar2" (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar2 = uVar2 + 4;" (assignment_expression "uVar2 = uVar2 + 4" identifier = (binary_expression "uVar2 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc))" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - ((uint)(puVar1 + 1) & 0xfffffffc))" ( (binary_expression "0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (if_statement "if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }" if (parenthesized_expression "(extraout_ECX != 0)" ( (binary_expression "extraout_ECX != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }" { (expression_statement "puVar1[3] = extraout_ECX;" (assignment_expression "puVar1[3] = extraout_ECX" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_0009dd20();" (assignment_expression "iVar3 = FUN_0009dd20()" identifier = (call_expression "FUN_0009dd20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" if (parenthesized_expression "(*(char *)(puVar1 + 5) == '\0')" ( (binary_expression "*(char *)(puVar1 + 5) == '\0'" (pointer_expression "*(char *)(puVar1 + 5)" * (cast_expression "(char *)(puVar1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }" { (if_statement "if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }" { (expression_statement "bVar5 = *(byte *)(extraout_ECX + iVar3);" (assignment_expression "bVar5 = *(byte *)(extraout_ECX + iVar3)" identifier = (pointer_expression "*(byte *)(extraout_ECX + iVar3)" * (cast_expression "(byte *)(extraout_ECX + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + iVar3)" ( (binary_expression "extraout_ECX + iVar3" identifier + identifier) ))))) ;) (if_statement "if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }" if (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" * (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar5" (binary_expression "unaff_EDI + 0xc7737" identifier + number_literal) + (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }" { (expression_statement "pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);" (assignment_expression "pbVar4 = (byte *)(extraout_ECX + 1 + iVar3)" identifier = (cast_expression "(byte *)(extraout_ECX + 1 + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 1 + iVar3)" ( (binary_expression "extraout_ECX + 1 + iVar3" (binary_expression "extraout_ECX + 1" identifier + number_literal) + identifier) )))) ;) (do_statement "do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');" do (compound_statement "{\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          }" { (expression_statement "bVar5 = *pbVar4;" (assignment_expression "bVar5 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" * (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar5)" ( (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar5" (binary_expression "unaff_EDI + 0xc7737" identifier + number_literal) + (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (if_statement "if (bVar5 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }" { (expression_statement "*(undefined4 *)(iVar6 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(iVar6 + 0x14) = 1" (pointer_expression "*(undefined4 *)(iVar6 + 0x14)" * (cast_expression "(undefined4 *)(iVar6 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0006f5d0(0xffffffff);" (call_expression "FUN_0006f5d0(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal ))) ;) })) }) (else_clause "else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" else (if_statement "if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0004e320(iVar6);\n    }" { (expression_statement "FUN_0004e320(iVar6);" (call_expression "FUN_0004e320(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) })))) (expression_statement "FUN_00044000(puVar1[2]);" (call_expression "FUN_00044000(puVar1[2])" identifier (argument_list "(puVar1[2])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00044000(puVar1[4]);" (call_expression "FUN_00044000(puVar1[4])" identifier (argument_list "(puVar1[4])" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) ))) & LIT) ))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) != (char_literal ' escape_sequence ')) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (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) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })))) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0009e3a0(void)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0009e3a0(void)" (identifier "FUN_0009e3a0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  byte *pbVar4;\n  int extraout_ECX;\n  byte bVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0003a401();\n  iVar6 = (int)((ulonglong)uVar7 >> 0x20);\n  puVar1 = (undefined4 *)uVar7;\n  *puVar1 = 0;\n  puVar1[7] = 0;\n  uVar2 = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n  if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }\n  return 1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (expression_statement "uVar7 = FUN_0003a401();" (assignment_expression "uVar7 = FUN_0003a401()" (identifier "uVar7") (= "=") (call_expression "FUN_0003a401()" (identifier "FUN_0003a401") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar6 = (int)((ulonglong)uVar7 >> 0x20)" (identifier "iVar6") (= "=") (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "puVar1 = (undefined4 *)uVar7;" (assignment_expression "puVar1 = (undefined4 *)uVar7" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)uVar7" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar7"))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" (do "do") (compound_statement "{\n    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;\n    uVar2 = uVar2 + 4;\n  }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" (* "*") (cast_expression "(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2)" (( "(") (binary_expression "((uint)(puVar1 + 1) & 0xfffffffc) + uVar2" (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = uVar2 + 4;" (assignment_expression "uVar2 = uVar2 + 4" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 4" (identifier "uVar2") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" (( "(") (binary_expression "uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" (identifier "uVar2") (< "<") (parenthesized_expression "((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" (( "(") (binary_expression "(int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc))" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (parenthesized_expression "(0x20 - ((uint)(puVar1 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)" (number_literal "0x20") (- "-") (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")) (; ";")) (if_statement "if (extraout_ECX != 0) {\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }" (if "if") (parenthesized_expression "(extraout_ECX != 0)" (( "(") (binary_expression "extraout_ECX != 0" (identifier "extraout_ECX") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1[3] = extraout_ECX;\n    iVar3 = FUN_0009dd20();\n    if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }\n    FUN_00044000(puVar1[2]);\n    puVar1[2] = 0;\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    FUN_00044000(puVar1[4]);\n    puVar1[4] = 0;\n  }" ({ "{") (expression_statement "puVar1[3] = extraout_ECX;" (assignment_expression "puVar1[3] = extraout_ECX" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "extraout_ECX")) (; ";")) (expression_statement "iVar3 = FUN_0009dd20();" (assignment_expression "iVar3 = FUN_0009dd20()" (identifier "iVar3") (= "=") (call_expression "FUN_0009dd20()" (identifier "FUN_0009dd20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(char *)(puVar1 + 5) == '\0') {\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }\n    else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" (if "if") (parenthesized_expression "(*(char *)(puVar1 + 5) == '\0')" (( "(") (binary_expression "*(char *)(puVar1 + 5) == '\0'" (pointer_expression "*(char *)(puVar1 + 5)" (* "*") (cast_expression "(char *)(puVar1 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 5)" (( "(") (binary_expression "puVar1 + 5" (identifier "puVar1") (+ "+") (number_literal "5")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }\n      if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }\n    }" ({ "{") (if_statement "if (0 < iVar3) {\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n        bVar5 = *(byte *)(extraout_ECX + iVar3);\n        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }\n        if (bVar5 == 0) {\n          return 0;\n        }\n      }" ({ "{") (expression_statement "bVar5 = *(byte *)(extraout_ECX + iVar3);" (assignment_expression "bVar5 = *(byte *)(extraout_ECX + iVar3)" (identifier "bVar5") (= "=") (pointer_expression "*(byte *)(extraout_ECX + iVar3)" (* "*") (cast_expression "(byte *)(extraout_ECX + iVar3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + iVar3)" (( "(") (binary_expression "extraout_ECX + iVar3" (identifier "extraout_ECX") (+ "+") (identifier "iVar3")) () ")"))))) (; ";")) (if_statement "if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }" (if "if") (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0')" (( "(") (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" (* "*") (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar5)" (( "(") (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar5" (binary_expression "unaff_EDI + 0xc7737" (identifier "unaff_EDI") (+ "+") (number_literal "0xc7737")) (+ "+") (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5"))) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);\n          do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');\n        }" ({ "{") (expression_statement "pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);" (assignment_expression "pbVar4 = (byte *)(extraout_ECX + 1 + iVar3)" (identifier "pbVar4") (= "=") (cast_expression "(byte *)(extraout_ECX + 1 + iVar3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + 1 + iVar3)" (( "(") (binary_expression "extraout_ECX + 1 + iVar3" (binary_expression "extraout_ECX + 1" (identifier "extraout_ECX") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (do_statement "do {\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');" (do "do") (compound_statement "{\n            bVar5 = *pbVar4;\n            pbVar4 = pbVar4 + 1;\n          }" ({ "{") (expression_statement "bVar5 = *pbVar4;" (assignment_expression "bVar5 = *pbVar4" (identifier "bVar5") (= "=") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0')" (( "(") (binary_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0'" (pointer_expression "*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" (* "*") (cast_expression "(char *)(unaff_EDI + 0xc7737 + (uint)bVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc7737 + (uint)bVar5)" (( "(") (binary_expression "unaff_EDI + 0xc7737 + (uint)bVar5" (binary_expression "unaff_EDI + 0xc7737" (identifier "unaff_EDI") (+ "+") (number_literal "0xc7737")) (+ "+") (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5"))) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (if_statement "if (bVar5 == 0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(bVar5 == 0)" (( "(") (binary_expression "bVar5 == 0" (identifier "bVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar6 != 0) {\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(iVar6 + 0x14) = 1;\n        FUN_0006f5d0(0xffffffff);\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar6 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(iVar6 + 0x14) = 1" (pointer_expression "*(undefined4 *)(iVar6 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x14)" (( "(") (binary_expression "iVar6 + 0x14" (identifier "iVar6") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_0006f5d0(0xffffffff);" (call_expression "FUN_0006f5d0(0xffffffff)" (identifier "FUN_0006f5d0") (argument_list "(0xffffffff)" (( "(") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" (else "else") (if_statement "if (iVar6 != 0) {\n      FUN_0004e320(iVar6);\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0004e320(iVar6);\n    }" ({ "{") (expression_statement "FUN_0004e320(iVar6);" (call_expression "FUN_0004e320(iVar6)" (identifier "FUN_0004e320") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (} "}"))))) (expression_statement "FUN_00044000(puVar1[2]);" (call_expression "FUN_00044000(puVar1[2])" (identifier "FUN_00044000") (argument_list "(puVar1[2])" (( "(") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00044000(puVar1[4]);" (call_expression "FUN_00044000(puVar1[4])" (identifier "FUN_00044000") (argument_list "(puVar1[4])" (( "(") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(type_1 *pParse,type_2 *pCtx,char *zJson)

{
  type_1 *pParse_00;
  type_3 var_3;
  int var_6;
  type_4 *var_8;
  char *var_4;
  type_4 var_9;
  type_2 *var_10;
  int var_7;
  type_3 var_2;
  type_5 uVar6;
  type_6 *in_stack_ffffffc8;
  
  uVar6 = var_1();
  var_10 = (type_2 *)((type_7)uVar6 >> 0x20);
  pParse_00 = (type_1 *)uVar6;
  var_2 = (type_3)&pParse_00->nAlloc & 0xfffffffc;
  pParse_00->nNode = 0;
  pParse_00->iHold = 0;
  var_3 = 0;
  do {
    *(type_8 *)(var_2 + var_3) = 0;
    var_3 = var_3 + 4;
  } while (var_3 < ((int)pParse_00 + (0x20 - var_2) & 0xfffffffc));
  if (var_4 != (char *)0x0) {
    pParse_00->zJson = var_4;
    var_6 = var_5(pParse_00,0);
    if (pParse_00->oom == '\0') {
      if (0 < var_6) {
        var_9 = var_4[var_6];
        if (*(char *)(var_7 + 0xc7737 + (type_3)var_9) != '\0') {
          var_8 = (type_4 *)(var_4 + var_6 + 1);
          do {
            var_9 = *var_8;
            var_8 = var_8 + 1;
          } while (*(char *)(var_7 + 0xc7737 + (type_3)var_9) != '\0');
        }
        if (var_9 == 0) {
          return 0;
        }
      }
      if (var_10 != (type_2 *)0x0) {
        var_10->isError = 1;
        var_11(var_10->pOut,(char *)(var_7 + 0xbebf8),1,0xff,in_stack_ffffffc8);
      }
    }
    else if (var_10 != (type_2 *)0x0) {
      var_12(var_10);
    }
    var_13(pParse_00->aNode);
    pParse_00->aNode = (type_9 *)0x0;
    pParse_00->nNode = 0;
    pParse_00->nAlloc = 0;
    var_13(pParse_00->aUp);
    pParse_00->aUp = (type_10 *)0x0;
  }
  return 1;
}


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

undefined4 MASKED(void)

{
  undefined4 *puVar1;
  uint uVar2;
  int iVar3;
  byte *pbVar4;
  int extraout_ECX;
  byte bVar5;
  int iVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = FUN_0003a401();
  iVar6 = (int)((ulonglong)uVar7 >> 0x20);
  puVar1 = (undefined4 *)uVar7;
  *puVar1 = 0;
  puVar1[7] = 0;
  uVar2 = 0;
  do {
    *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar2) = 0;
    uVar2 = uVar2 + 4;
  } while (uVar2 < ((int)puVar1 + (0x20 - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));
  if (extraout_ECX != 0) {
    puVar1[3] = extraout_ECX;
    iVar3 = FUN_0009dd20();
    if (*(char *)(puVar1 + 5) == '\0') {
      if (0 < iVar3) {
        bVar5 = *(byte *)(extraout_ECX + iVar3);
        if (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0') {
          pbVar4 = (byte *)(extraout_ECX + 1 + iVar3);
          do {
            bVar5 = *pbVar4;
            pbVar4 = pbVar4 + 1;
          } while (*(char *)(unaff_EDI + 0xc7737 + (uint)bVar5) != '\0');
        }
        if (bVar5 == 0) {
          return 0;
        }
      }
      if (iVar6 != 0) {
        *(undefined4 *)(iVar6 + 0x14) = 1;
        FUN_0006f5d0(0xffffffff);
      }
    }
    else if (iVar6 != 0) {
      FUN_0004e320(iVar6);
    }
    FUN_00044000(puVar1[2]);
    puVar1[2] = 0;
    *puVar1 = 0;
    puVar1[1] = 0;
    FUN_00044000(puVar1[4]);
    puVar1[4] = 0;
  }
  return 1;
}

