
void show_arch(FILE *stream,int ext,int check)

{
  FILE *__stream;
  char *p;
  int extraout_ECX;
  char *pcVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int *piVar5;
  int iVar6;
  int unaff_EDI;
  undefined8 uVar7;
  char *in_stack_ffffffac;
  int in_stack_ffffffb0;
  int left;
  
  uVar7 = __x86_get_pc_thunk_di();
  iVar2 = (int)((ulonglong)uVar7 >> 0x20);
  __stream = (FILE *)uVar7;
  iVar3 = 0;
  p = (char *)(unaff_EDI + 0x38ca4);
  iVar6 = 0;
  left = 0x36;
  puVar4 = (undefined4 *)(unaff_EDI + 0x36a49);
  do {
    if (iVar3 == 0) {
      pcVar1 = (char *)*puVar4;
      piVar5 = (int *)puVar4[1];
      if (*pcVar1 == '.') {
        if (iVar2 != 0) {
          pcVar1 = pcVar1 + 1;
          piVar5 = (int *)((int)piVar5 + -1);
LAB_000478c0:
          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,
                             in_stack_ffffffb0);
        }
      }
      else if ((iVar2 == 0) &&
              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))
      goto LAB_000478c0;
    }
    iVar6 = iVar6 + 1;
    if (iVar6 == 0x84) {
      if (iVar2 != 0) {
        piVar5 = (int *)0x4;
        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);
        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);
        while( true ) {
          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,
                             in_stack_ffffffb0);
          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;
          piVar5 = (int *)puVar4[1];
          pcVar1 = (char *)*puVar4;
          puVar4 = puVar4 + 6;
        }
      }
      *p = '\0';
      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);
      return;
    }
    iVar3 = puVar4[0xf];
    puVar4 = puVar4 + 8;
  } while( true );
}



void FUN_00047850(void)

{
  undefined1 *puVar1;
  int extraout_ECX;
  char *pcVar2;
  int iVar3;
  int iVar4;
  undefined4 *puVar5;
  int *piVar6;
  int iVar7;
  int unaff_EDI;
  undefined8 uVar8;
  
  uVar8 = FUN_0001d569();
  iVar4 = (int)((ulonglong)uVar8 >> 0x20);
  iVar3 = 0;
  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);
  iVar7 = 0;
  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);
  do {
    if (iVar3 == 0) {
      pcVar2 = (char *)*puVar5;
      iVar3 = puVar5[1];
      if (*pcVar2 == '.') {
        if (iVar4 != 0) {
          pcVar2 = pcVar2 + 1;
          iVar3 = iVar3 + -1;
LAB_000478c0:
          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);
        }
      }
      else if ((iVar4 == 0) &&
              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))
      goto LAB_000478c0;
    }
    iVar7 = iVar7 + 1;
    if (iVar7 == 0x84) {
      if (iVar4 != 0) {
        iVar4 = 4;
        piVar6 = (int *)(unaff_EDI + 0x36741);
        iVar3 = unaff_EDI + 0x1c4b5;
        while( true ) {
          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);
          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;
          iVar4 = piVar6[1];
          iVar3 = *piVar6;
          piVar6 = piVar6 + 6;
        }
      }
      *puVar1 = 0;
      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);
      return;
    }
    iVar3 = puVar5[0xf];
    puVar5 = puVar5 + 8;
  } while( true );
}


PUSH EBP
PUSH EDI
CALL 0x0001d569
ADD EDI,0x387a9
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV dword ptr [ESP + 0xc],EAX
MOV ESI,EDI
MOV dword ptr [ESP + 0x1c],EDI
MOV EDI,EDX
XOR EDX,EDX
MOV EAX,ESI
MOV dword ptr [ESP + 0x14],ECX
LEA ESI,[ESI + 0xffffe2a0]
LEA ECX,[ESP + 0x2c]
MOV dword ptr [ESP + 0x18],ESI
MOV EBX,ESI
LEA EAX,[EAX + 0x4fb]
XOR ESI,ESI
MOV dword ptr [ESP + 0x2c],0x36
MOV dword ptr [ESP + 0x10],ECX
MOV dword ptr [ESP + 0x8],EDI
JMP 0x000478e8
MOV EDI,dword ptr [ESP + 0x8]
TEST EDI,EDI
JNZ 0x000478d7
MOV EDX,dword ptr [ESP + 0x14]
TEST EDX,EDX
JZ 0x000478c0
MOV EDX,ESI
MOV EDI,dword ptr [ESP + 0x18]
SHL EDX,0x5
TEST byte ptr [EDI + EDX*0x1 + 0xc],0x4
JZ 0x000478d7
SUB ESP,0x8
MOV EDX,EAX
PUSH EBP
PUSH ECX
MOV ECX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x00047790
ADD ESP,0x10
ADD ESI,0x1
ADD EBX,0x20
CMP ESI,0x84
JZ 0x00047906
MOV EDX,dword ptr [EBX + 0x1c]
TEST EDX,EDX
JNZ 0x000478d7
MOV ECX,dword ptr [EBX]
MOV EBP,dword ptr [EBX + 0x4]
CMP byte ptr [ECX],0x2e
JNZ 0x000478a0
MOV EDX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JZ 0x000478d7
ADD ECX,0x1
SUB EBP,0x1
JMP 0x000478c0
MOV EDI,dword ptr [ESP + 0x8]
TEST EDI,EDI
JZ 0x00047957
MOV ESI,dword ptr [ESP + 0x1c]
MOV EDX,0x4
MOV EBP,dword ptr [ESP + 0xc]
LEA EBX,[ESI + 0xffffdf98]
LEA EDI,[ESI + 0xffffe298]
LEA ECX,[ESI + 0xfffe3d0c]
LEA ESI,[ESP + 0x2c]
JMP 0x00047940
MOV EDX,dword ptr [EBX + 0x4]
MOV ECX,dword ptr [EBX]
ADD EBX,0x18
SUB ESP,0x8
PUSH EDX
MOV EDX,EAX
MOV EAX,EBP
PUSH ECX
MOV ECX,ESI
CALL 0x00047790
ADD ESP,0x10
CMP EBX,EDI
JNZ 0x00047938
SUB ESP,0x4
MOV byte ptr [EAX],0x0
MOV EBX,dword ptr [ESP + 0x20]
LEA EAX,[EBX + 0x4e0]
PUSH EAX
LEA EAX,[EBX + 0xfffdec64]
PUSH EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x00014450
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_00047850(void)\n\n{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}\n\n" (function_definition "void FUN_00047850(void)\n\n{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00047850(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (expression_statement "uVar8 = FUN_0001d569();" (assignment_expression "uVar8 = FUN_0001d569()" identifier = (call_expression "FUN_0001d569()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = (int)((ulonglong)uVar8 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar8 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);" (assignment_expression "puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4)" identifier = (cast_expression "(undefined1 *)(unaff_EDI + 0x38ca4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x38ca4)" ( (binary_expression "unaff_EDI + 0x38ca4" identifier + number_literal) )))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);" (assignment_expression "puVar5 = (undefined4 *)(unaff_EDI + 0x36a49)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x36a49)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a49)" ( (binary_expression "unaff_EDI + 0x36a49" identifier + number_literal) )))) ;) (do_statement "do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );" do (compound_statement "{\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  }" { (if_statement "if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" { (expression_statement "pcVar2 = (char *)*puVar5;" (assignment_expression "pcVar2 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "iVar3 = puVar5[1];" (assignment_expression "iVar3 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (if_statement "if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" if (parenthesized_expression "(*pcVar2 == '.')" ( (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'.'" ' character ')) )) (compound_statement "{\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }" { (if_statement "if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }" { (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (labeled_statement "LAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);" statement_identifier : (expression_statement "puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);" (assignment_expression "puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3)" identifier = (cast_expression "(undefined1 *)FUN_00047790(pcVar2,iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047790(pcVar2,iVar3)" identifier (argument_list "(pcVar2,iVar3)" ( identifier , identifier ))))) ;)) })) }) (else_clause "else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" else (if_statement "if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" if (parenthesized_expression "((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))" ( (binary_expression "(iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)))" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)))" ( (parenthesized_expression "(extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))" ( (binary_expression "extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)" (binary_expression "extraout_ECX == 0" identifier == number_literal) || (parenthesized_expression "((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)" ( (binary_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0" (parenthesized_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4)" ( (binary_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4" (pointer_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20)" * (cast_expression "(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a55 + iVar7 * 0x20)" ( (binary_expression "unaff_EDI + 0x36a55 + iVar7 * 0x20" (binary_expression "unaff_EDI + 0x36a55" identifier + number_literal) + (binary_expression "iVar7 * 0x20" identifier * number_literal)) )))) & number_literal) )) != number_literal) ))) )) ))) )) (goto_statement "goto LAB_000478c0;" goto statement_identifier ;)))) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }" if (parenthesized_expression "(iVar7 == 0x84)" ( (binary_expression "iVar7 == 0x84" identifier == number_literal) )) (compound_statement "{\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }" { (if_statement "if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }" { (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" identifier = number_literal) ;) (expression_statement "piVar6 = (int *)(unaff_EDI + 0x36741);" (assignment_expression "piVar6 = (int *)(unaff_EDI + 0x36741)" identifier = (cast_expression "(int *)(unaff_EDI + 0x36741)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36741)" ( (binary_expression "unaff_EDI + 0x36741" identifier + number_literal) )))) ;) (expression_statement "iVar3 = unaff_EDI + 0x1c4b5;" (assignment_expression "iVar3 = unaff_EDI + 0x1c4b5" identifier = (binary_expression "unaff_EDI + 0x1c4b5" identifier + number_literal)) ;) (while_statement "while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }" { (expression_statement "puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);" (assignment_expression "puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4)" identifier = (cast_expression "(undefined1 *)FUN_00047790(iVar3,iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047790(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))))) ;) (if_statement "if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;" if (parenthesized_expression "(piVar6 == (int *)(unaff_EDI + 0x36a41))" ( (binary_expression "piVar6 == (int *)(unaff_EDI + 0x36a41)" identifier == (cast_expression "(int *)(unaff_EDI + 0x36a41)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a41)" ( (binary_expression "unaff_EDI + 0x36a41" identifier + number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = piVar6[1];" (assignment_expression "iVar4 = piVar6[1]" identifier = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *piVar6;" (assignment_expression "iVar3 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "piVar6 = piVar6 + 6;" (assignment_expression "piVar6 = piVar6 + 6" identifier = (binary_expression "piVar6 + 6" identifier + number_literal)) ;) })) })) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);" (call_expression "fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89)" identifier (argument_list "((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89)" ( (cast_expression "(FILE *)uVar8" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "&UNK_0001740d + unaff_EDI" (pointer_expression "&UNK_0001740d" & identifier) + identifier) , (binary_expression "unaff_EDI + 0x38c89" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = puVar5[0xf];" (assignment_expression "iVar3 = puVar5[0xf]" identifier = (subscript_expression "puVar5[0xf]" identifier [ number_literal ])) ;) (expression_statement "puVar5 = puVar5 + 8;" (assignment_expression "puVar5 = puVar5 + 8" identifier = (binary_expression "puVar5 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void show_arch(FILE *stream,int ext,int check)\n\n{\n  FILE *__stream;\n  char *p;\n  int extraout_ECX;\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  char *in_stack_ffffffac;\n  int in_stack_ffffffb0;\n  int left;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar2 = (int)((ulonglong)uVar7 >> 0x20);\n  __stream = (FILE *)uVar7;\n  iVar3 = 0;\n  p = (char *)(unaff_EDI + 0x38ca4);\n  iVar6 = 0;\n  left = 0x36;\n  puVar4 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar1 = (char *)*puVar4;\n      piVar5 = (int *)puVar4[1];\n      if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 0x84) {\n      if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }\n      *p = '\0';\n      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar4[0xf];\n    puVar4 = puVar4 + 8;\n  } while( true );\n}\n\n" (function_definition "void show_arch(FILE *stream,int ext,int check)\n\n{\n  FILE *__stream;\n  char *p;\n  int extraout_ECX;\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  char *in_stack_ffffffac;\n  int in_stack_ffffffb0;\n  int left;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar2 = (int)((ulonglong)uVar7 >> 0x20);\n  __stream = (FILE *)uVar7;\n  iVar3 = 0;\n  p = (char *)(unaff_EDI + 0x38ca4);\n  iVar6 = 0;\n  left = 0x36;\n  puVar4 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar1 = (char *)*puVar4;\n      piVar5 = (int *)puVar4[1];\n      if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 0x84) {\n      if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }\n      *p = '\0';\n      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar4[0xf];\n    puVar4 = puVar4 + 8;\n  } while( true );\n}" primitive_type (function_declarator "show_arch(FILE *stream,int ext,int check)" identifier (parameter_list "(FILE *stream,int ext,int check)" ( (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) , (parameter_declaration "int ext" primitive_type identifier) , (parameter_declaration "int check" primitive_type identifier) ))) (compound_statement "{\n  FILE *__stream;\n  char *p;\n  int extraout_ECX;\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  char *in_stack_ffffffac;\n  int in_stack_ffffffb0;\n  int left;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar2 = (int)((ulonglong)uVar7 >> 0x20);\n  __stream = (FILE *)uVar7;\n  iVar3 = 0;\n  p = (char *)(unaff_EDI + 0x38ca4);\n  iVar6 = 0;\n  left = 0x36;\n  puVar4 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar1 = (char *)*puVar4;\n      piVar5 = (int *)puVar4[1];\n      if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 0x84) {\n      if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }\n      *p = '\0';\n      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar4[0xf];\n    puVar4 = puVar4 + 8;\n  } while( true );\n}" { (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "char *in_stack_ffffffac;" primitive_type (pointer_declarator "*in_stack_ffffffac" * identifier) ;) (declaration "int in_stack_ffffffb0;" primitive_type identifier ;) (declaration "int left;" primitive_type identifier ;) (expression_statement "uVar7 = __x86_get_pc_thunk_di();" (assignment_expression "uVar7 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar2 = (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 "__stream = (FILE *)uVar7;" (assignment_expression "__stream = (FILE *)uVar7" identifier = (cast_expression "(FILE *)uVar7" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "p = (char *)(unaff_EDI + 0x38ca4);" (assignment_expression "p = (char *)(unaff_EDI + 0x38ca4)" identifier = (cast_expression "(char *)(unaff_EDI + 0x38ca4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x38ca4)" ( (binary_expression "unaff_EDI + 0x38ca4" identifier + number_literal) )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "left = 0x36;" (assignment_expression "left = 0x36" identifier = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)(unaff_EDI + 0x36a49);" (assignment_expression "puVar4 = (undefined4 *)(unaff_EDI + 0x36a49)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x36a49)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a49)" ( (binary_expression "unaff_EDI + 0x36a49" identifier + number_literal) )))) ;) (do_statement "do {\n    if (iVar3 == 0) {\n      pcVar1 = (char *)*puVar4;\n      piVar5 = (int *)puVar4[1];\n      if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 0x84) {\n      if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }\n      *p = '\0';\n      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar4[0xf];\n    puVar4 = puVar4 + 8;\n  } while( true );" do (compound_statement "{\n    if (iVar3 == 0) {\n      pcVar1 = (char *)*puVar4;\n      piVar5 = (int *)puVar4[1];\n      if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 0x84) {\n      if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }\n      *p = '\0';\n      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar4[0xf];\n    puVar4 = puVar4 + 8;\n  }" { (if_statement "if (iVar3 == 0) {\n      pcVar1 = (char *)*puVar4;\n      piVar5 = (int *)puVar4[1];\n      if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar1 = (char *)*puVar4;\n      piVar5 = (int *)puVar4[1];\n      if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" { (expression_statement "pcVar1 = (char *)*puVar4;" (assignment_expression "pcVar1 = (char *)*puVar4" identifier = (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "piVar5 = (int *)puVar4[1];" (assignment_expression "piVar5 = (int *)puVar4[1]" identifier = (cast_expression "(int *)puVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (if_statement "if (*pcVar1 == '.') {\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }\n      else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" if (parenthesized_expression "(*pcVar1 == '.')" ( (binary_expression "*pcVar1 == '.'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'.'" ' character ')) )) (compound_statement "{\n        if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }\n      }" { (if_statement "if (iVar2 != 0) {\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar1 = pcVar1 + 1;\n          piVar5 = (int *)((int)piVar5 + -1);\nLAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n        }" { (expression_statement "pcVar1 = pcVar1 + 1;" (assignment_expression "pcVar1 = pcVar1 + 1" identifier = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "piVar5 = (int *)((int)piVar5 + -1);" (assignment_expression "piVar5 = (int *)((int)piVar5 + -1)" identifier = (cast_expression "(int *)((int)piVar5 + -1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + -1)" ( (binary_expression "(int)piVar5 + -1" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (labeled_statement "LAB_000478c0:\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);" statement_identifier : (expression_statement "p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);" (assignment_expression "p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0)" identifier = (call_expression "output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0)" identifier (argument_list "((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(char *)&left" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&left" & identifier)) , identifier , identifier , identifier , identifier )))) ;)) })) }) (else_clause "else if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" else (if_statement "if ((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" if (parenthesized_expression "((iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))))" ( (binary_expression "(iVar2 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0)))" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0)))" ( (parenthesized_expression "(extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0))" ( (binary_expression "extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0)" (binary_expression "extraout_ECX == 0" identifier == number_literal) || (parenthesized_expression "((*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0)" ( (binary_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4) != 0" (parenthesized_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4)" ( (binary_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20) & 4" (pointer_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20)" * (cast_expression "(byte *)(unaff_EDI + 0x36a55 + iVar6 * 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a55 + iVar6 * 0x20)" ( (binary_expression "unaff_EDI + 0x36a55 + iVar6 * 0x20" (binary_expression "unaff_EDI + 0x36a55" identifier + number_literal) + (binary_expression "iVar6 * 0x20" identifier * number_literal)) )))) & number_literal) )) != number_literal) ))) )) ))) )) (goto_statement "goto LAB_000478c0;" goto statement_identifier ;)))) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 == 0x84) {\n      if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }\n      *p = '\0';\n      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);\n      return;\n    }" if (parenthesized_expression "(iVar6 == 0x84)" ( (binary_expression "iVar6 == 0x84" identifier == number_literal) )) (compound_statement "{\n      if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }\n      *p = '\0';\n      fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);\n      return;\n    }" { (if_statement "if (iVar2 != 0) {\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar5 = (int *)0x4;\n        puVar4 = (undefined4 *)(unaff_EDI + 0x36741);\n        pcVar1 = (char *)(unaff_EDI + 0x1c4b5);\n        while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }\n      }" { (expression_statement "piVar5 = (int *)0x4;" (assignment_expression "piVar5 = (int *)0x4" identifier = (cast_expression "(int *)0x4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)(unaff_EDI + 0x36741);" (assignment_expression "puVar4 = (undefined4 *)(unaff_EDI + 0x36741)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x36741)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36741)" ( (binary_expression "unaff_EDI + 0x36741" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)(unaff_EDI + 0x1c4b5);" (assignment_expression "pcVar1 = (char *)(unaff_EDI + 0x1c4b5)" identifier = (cast_expression "(char *)(unaff_EDI + 0x1c4b5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1c4b5)" ( (binary_expression "unaff_EDI + 0x1c4b5" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);\n          if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;\n          piVar5 = (int *)puVar4[1];\n          pcVar1 = (char *)*puVar4;\n          puVar4 = puVar4 + 6;\n        }" { (expression_statement "p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0);" (assignment_expression "p = output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0)" identifier = (call_expression "output_message((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0)" identifier (argument_list "((FILE *)__stream,p,(char *)&left,pcVar1,piVar5,in_stack_ffffffac,\n                             in_stack_ffffffb0)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(char *)&left" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&left" & identifier)) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)) break;" if (parenthesized_expression "(puVar4 == (undefined4 *)(unaff_EDI + 0x36a41))" ( (binary_expression "puVar4 == (undefined4 *)(unaff_EDI + 0x36a41)" identifier == (cast_expression "(undefined4 *)(unaff_EDI + 0x36a41)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a41)" ( (binary_expression "unaff_EDI + 0x36a41" identifier + number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "piVar5 = (int *)puVar4[1];" (assignment_expression "piVar5 = (int *)puVar4[1]" identifier = (cast_expression "(int *)puVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "pcVar1 = (char *)*puVar4;" (assignment_expression "pcVar1 = (char *)*puVar4" identifier = (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar4 = puVar4 + 6;" (assignment_expression "puVar4 = puVar4 + 6" identifier = (binary_expression "puVar4 + 6" identifier + number_literal)) ;) })) })) (expression_statement "*p = '\0';" (assignment_expression "*p = '\0'" (pointer_expression "*p" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89);" (call_expression "fprintf(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89)" identifier (argument_list "(__stream,(char *)(unaff_EDI + 0x1740d),unaff_EDI + 0x38c89)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x1740d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1740d)" ( (binary_expression "unaff_EDI + 0x1740d" identifier + number_literal) ))) , (binary_expression "unaff_EDI + 0x38c89" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = puVar4[0xf];" (assignment_expression "iVar3 = puVar4[0xf]" identifier = (subscript_expression "puVar4[0xf]" identifier [ number_literal ])) ;) (expression_statement "puVar4 = puVar4 + 8;" (assignment_expression "puVar4 = puVar4 + 8" identifier = (binary_expression "puVar4 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_00047850(void)\n\n{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}\n\n" (function_definition "void FUN_00047850(void)\n\n{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00047850(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (expression_statement "uVar8 = FUN_0001d569();" (assignment_expression "uVar8 = FUN_0001d569()" identifier = (call_expression "FUN_0001d569()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = (int)((ulonglong)uVar8 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar8 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);" (assignment_expression "puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4)" identifier = (cast_expression "(undefined1 *)(unaff_EDI + 0x38ca4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x38ca4)" ( (binary_expression "unaff_EDI + 0x38ca4" identifier + number_literal) )))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);" (assignment_expression "puVar5 = (undefined4 *)(unaff_EDI + 0x36a49)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x36a49)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a49)" ( (binary_expression "unaff_EDI + 0x36a49" identifier + number_literal) )))) ;) (do_statement "do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );" do (compound_statement "{\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  }" { (if_statement "if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" { (expression_statement "pcVar2 = (char *)*puVar5;" (assignment_expression "pcVar2 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "iVar3 = puVar5[1];" (assignment_expression "iVar3 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (if_statement "if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" if (parenthesized_expression "(*pcVar2 == '.')" ( (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'.'" ' character ')) )) (compound_statement "{\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }" { (if_statement "if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }" { (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (labeled_statement "LAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);" statement_identifier : (expression_statement "puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);" (assignment_expression "puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3)" identifier = (cast_expression "(undefined1 *)FUN_00047790(pcVar2,iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047790(pcVar2,iVar3)" identifier (argument_list "(pcVar2,iVar3)" ( identifier , identifier ))))) ;)) })) }) (else_clause "else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" else (if_statement "if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" if (parenthesized_expression "((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))" ( (binary_expression "(iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)))" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)))" ( (parenthesized_expression "(extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))" ( (binary_expression "extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)" (binary_expression "extraout_ECX == 0" identifier == number_literal) || (parenthesized_expression "((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)" ( (binary_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0" (parenthesized_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4)" ( (binary_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4" (pointer_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20)" * (cast_expression "(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a55 + iVar7 * 0x20)" ( (binary_expression "unaff_EDI + 0x36a55 + iVar7 * 0x20" (binary_expression "unaff_EDI + 0x36a55" identifier + number_literal) + (binary_expression "iVar7 * 0x20" identifier * number_literal)) )))) & number_literal) )) != number_literal) ))) )) ))) )) (goto_statement "goto LAB_000478c0;" goto statement_identifier ;)))) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }" if (parenthesized_expression "(iVar7 == 0x84)" ( (binary_expression "iVar7 == 0x84" identifier == number_literal) )) (compound_statement "{\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }" { (if_statement "if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }" { (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" identifier = number_literal) ;) (expression_statement "piVar6 = (int *)(unaff_EDI + 0x36741);" (assignment_expression "piVar6 = (int *)(unaff_EDI + 0x36741)" identifier = (cast_expression "(int *)(unaff_EDI + 0x36741)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36741)" ( (binary_expression "unaff_EDI + 0x36741" identifier + number_literal) )))) ;) (expression_statement "iVar3 = unaff_EDI + 0x1c4b5;" (assignment_expression "iVar3 = unaff_EDI + 0x1c4b5" identifier = (binary_expression "unaff_EDI + 0x1c4b5" identifier + number_literal)) ;) (while_statement "while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }" { (expression_statement "puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);" (assignment_expression "puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4)" identifier = (cast_expression "(undefined1 *)FUN_00047790(iVar3,iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047790(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))))) ;) (if_statement "if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;" if (parenthesized_expression "(piVar6 == (int *)(unaff_EDI + 0x36a41))" ( (binary_expression "piVar6 == (int *)(unaff_EDI + 0x36a41)" identifier == (cast_expression "(int *)(unaff_EDI + 0x36a41)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x36a41)" ( (binary_expression "unaff_EDI + 0x36a41" identifier + number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = piVar6[1];" (assignment_expression "iVar4 = piVar6[1]" identifier = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *piVar6;" (assignment_expression "iVar3 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "piVar6 = piVar6 + 6;" (assignment_expression "piVar6 = piVar6 + 6" identifier = (binary_expression "piVar6 + 6" identifier + number_literal)) ;) })) })) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);" (call_expression "fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89)" identifier (argument_list "((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89)" ( (cast_expression "(FILE *)uVar8" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "&UNK_0001740d + unaff_EDI" (pointer_expression "&UNK_0001740d" & identifier) + identifier) , (binary_expression "unaff_EDI + 0x38c89" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = puVar5[0xf];" (assignment_expression "iVar3 = puVar5[0xf]" identifier = (subscript_expression "puVar5[0xf]" identifier [ number_literal ])) ;) (expression_statement "puVar5 = puVar5 + 8;" (assignment_expression "puVar5 = puVar5 + 8" identifier = (binary_expression "puVar5 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;)) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) & LIT) )) != LIT) ))) )) ))) )) (goto_statement goto statement_identifier ;)))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (binary_expression (pointer_expression & IDENT) + IDENT) , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_00047850(void)\n\n{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00047850(void)" (identifier "FUN_00047850") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  int extraout_ECX;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  int iVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  \n  uVar8 = FUN_0001d569();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  iVar3 = 0;\n  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);\n  iVar7 = 0;\n  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);\n  do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar8;" (type_identifier "undefined8") (identifier "uVar8") (; ";")) (expression_statement "uVar8 = FUN_0001d569();" (assignment_expression "uVar8 = FUN_0001d569()" (identifier "uVar8") (= "=") (call_expression "FUN_0001d569()" (identifier "FUN_0001d569") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar4 = (int)((ulonglong)uVar8 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar8 >> 0x20)" (identifier "iVar4") (= "=") (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);" (assignment_expression "puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(unaff_EDI + 0x38ca4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x38ca4)" (( "(") (binary_expression "unaff_EDI + 0x38ca4" (identifier "unaff_EDI") (+ "+") (number_literal "0x38ca4")) () ")")))) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);" (assignment_expression "puVar5 = (undefined4 *)(unaff_EDI + 0x36a49)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(unaff_EDI + 0x36a49)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x36a49)" (( "(") (binary_expression "unaff_EDI + 0x36a49" (identifier "unaff_EDI") (+ "+") (number_literal "0x36a49")) () ")")))) (; ";")) (do_statement "do {\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  } while( true );" (do "do") (compound_statement "{\n    if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }\n    iVar7 = iVar7 + 1;\n    if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }\n    iVar3 = puVar5[0xf];\n    puVar5 = puVar5 + 8;\n  }" ({ "{") (if_statement "if (iVar3 == 0) {\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar2 = (char *)*puVar5;\n      iVar3 = puVar5[1];\n      if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;\n    }" ({ "{") (expression_statement "pcVar2 = (char *)*puVar5;" (assignment_expression "pcVar2 = (char *)*puVar5" (identifier "pcVar2") (= "=") (cast_expression "(char *)*puVar5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "iVar3 = puVar5[1];" (assignment_expression "iVar3 = puVar5[1]" (identifier "iVar3") (= "=") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*pcVar2 == '.') {\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }\n      else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" (if "if") (parenthesized_expression "(*pcVar2 == '.')" (( "(") (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (compound_statement "{\n        if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }\n      }" ({ "{") (if_statement "if (iVar4 != 0) {\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          pcVar2 = pcVar2 + 1;\n          iVar3 = iVar3 + -1;\nLAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);\n        }" ({ "{") (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (labeled_statement "LAB_000478c0:\n          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);" (statement_identifier "LAB_000478c0") (: ":") (expression_statement "puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);" (assignment_expression "puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)FUN_00047790(pcVar2,iVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00047790(pcVar2,iVar3)" (identifier "FUN_00047790") (argument_list "(pcVar2,iVar3)" (( "(") (identifier "pcVar2") (, ",") (identifier "iVar3") () ")"))))) (; ";"))) (} "}"))) (} "}")) (else_clause "else if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" (else "else") (if_statement "if ((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))\n      goto LAB_000478c0;" (if "if") (parenthesized_expression "((iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))" (( "(") (binary_expression "(iVar4 == 0) &&\n              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)))" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)))" (( "(") (parenthesized_expression "(extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))" (( "(") (binary_expression "extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)" (binary_expression "extraout_ECX == 0" (identifier "extraout_ECX") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0" (parenthesized_expression "(*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4)" (( "(") (binary_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4" (pointer_expression "*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20)" (* "*") (cast_expression "(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x36a55 + iVar7 * 0x20)" (( "(") (binary_expression "unaff_EDI + 0x36a55 + iVar7 * 0x20" (binary_expression "unaff_EDI + 0x36a55" (identifier "unaff_EDI") (+ "+") (number_literal "0x36a55")) (+ "+") (binary_expression "iVar7 * 0x20" (identifier "iVar7") (* "*") (number_literal "0x20"))) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (goto_statement "goto LAB_000478c0;" (goto "goto") (statement_identifier "LAB_000478c0") (; ";"))))) (} "}"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar7 == 0x84) {\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar7 == 0x84)" (( "(") (binary_expression "iVar7 == 0x84" (identifier "iVar7") (== "==") (number_literal "0x84")) () ")")) (compound_statement "{\n      if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }\n      *puVar1 = 0;\n      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);\n      return;\n    }" ({ "{") (if_statement "if (iVar4 != 0) {\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = 4;\n        piVar6 = (int *)(unaff_EDI + 0x36741);\n        iVar3 = unaff_EDI + 0x1c4b5;\n        while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }\n      }" ({ "{") (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" (identifier "iVar4") (= "=") (number_literal "4")) (; ";")) (expression_statement "piVar6 = (int *)(unaff_EDI + 0x36741);" (assignment_expression "piVar6 = (int *)(unaff_EDI + 0x36741)" (identifier "piVar6") (= "=") (cast_expression "(int *)(unaff_EDI + 0x36741)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x36741)" (( "(") (binary_expression "unaff_EDI + 0x36741" (identifier "unaff_EDI") (+ "+") (number_literal "0x36741")) () ")")))) (; ";")) (expression_statement "iVar3 = unaff_EDI + 0x1c4b5;" (assignment_expression "iVar3 = unaff_EDI + 0x1c4b5" (identifier "iVar3") (= "=") (binary_expression "unaff_EDI + 0x1c4b5" (identifier "unaff_EDI") (+ "+") (number_literal "0x1c4b5"))) (; ";")) (while_statement "while( true ) {\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);\n          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;\n          iVar4 = piVar6[1];\n          iVar3 = *piVar6;\n          piVar6 = piVar6 + 6;\n        }" ({ "{") (expression_statement "puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);" (assignment_expression "puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)FUN_00047790(iVar3,iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00047790(iVar3,iVar4)" (identifier "FUN_00047790") (argument_list "(iVar3,iVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") () ")"))))) (; ";")) (if_statement "if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;" (if "if") (parenthesized_expression "(piVar6 == (int *)(unaff_EDI + 0x36a41))" (( "(") (binary_expression "piVar6 == (int *)(unaff_EDI + 0x36a41)" (identifier "piVar6") (== "==") (cast_expression "(int *)(unaff_EDI + 0x36a41)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x36a41)" (( "(") (binary_expression "unaff_EDI + 0x36a41" (identifier "unaff_EDI") (+ "+") (number_literal "0x36a41")) () ")")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = piVar6[1];" (assignment_expression "iVar4 = piVar6[1]" (identifier "iVar4") (= "=") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar3 = *piVar6;" (assignment_expression "iVar3 = *piVar6" (identifier "iVar3") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (expression_statement "piVar6 = piVar6 + 6;" (assignment_expression "piVar6 = piVar6 + 6" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 6" (identifier "piVar6") (+ "+") (number_literal "6"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);" (call_expression "fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89)" (identifier "fprintf") (argument_list "((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89)" (( "(") (cast_expression "(FILE *)uVar8" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar8")) (, ",") (binary_expression "&UNK_0001740d + unaff_EDI" (pointer_expression "&UNK_0001740d" (& "&") (identifier "UNK_0001740d")) (+ "+") (identifier "unaff_EDI")) (, ",") (binary_expression "unaff_EDI + 0x38c89" (identifier "unaff_EDI") (+ "+") (number_literal "0x38c89")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = puVar5[0xf];" (assignment_expression "iVar3 = puVar5[0xf]" (identifier "iVar3") (= "=") (subscript_expression "puVar5[0xf]" (identifier "puVar5") ([ "[") (number_literal "0xf") (] "]"))) (; ";")) (expression_statement "puVar5 = puVar5 + 8;" (assignment_expression "puVar5 = puVar5 + 8" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 8" (identifier "puVar5") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(type_1 *stream,int ext,int check)

{
  type_1 *__stream;
  char *p;
  int var_7;
  char *var_5;
  int var_4;
  int var_3;
  type_2 *var_9;
  int *piVar5;
  int var_8;
  int var_2;
  type_3 uVar7;
  char *in_stack_ffffffac;
  int in_stack_ffffffb0;
  int left;
  
  uVar7 = var_1();
  var_4 = (int)((type_4)uVar7 >> 0x20);
  __stream = (type_1 *)uVar7;
  var_3 = 0;
  p = (char *)(var_2 + 0x38ca4);
  var_8 = 0;
  left = 0x36;
  var_9 = (type_2 *)(var_2 + 0x36a49);
  do {
    if (var_3 == 0) {
      var_5 = (char *)*var_9;
      piVar5 = (int *)var_9[1];
      if (*var_5 == '.') {
        if (var_4 != 0) {
          var_5 = var_5 + 1;
          piVar5 = (int *)((int)piVar5 + -1);
LAB_000478c0:
          p = var_6((type_1 *)__stream,p,(char *)&left,var_5,piVar5,in_stack_ffffffac,
                             in_stack_ffffffb0);
        }
      }
      else if ((var_4 == 0) &&
              ((var_7 == 0 || ((*(type_5 *)(var_2 + 0x36a55 + var_8 * 0x20) & 4) != 0))))
      goto LAB_000478c0;
    }
    var_8 = var_8 + 1;
    if (var_8 == 0x84) {
      if (var_4 != 0) {
        piVar5 = (int *)0x4;
        var_9 = (type_2 *)(var_2 + 0x36741);
        var_5 = (char *)(var_2 + 0x1c4b5);
        while( true ) {
          p = var_6((type_1 *)__stream,p,(char *)&left,var_5,piVar5,in_stack_ffffffac,
                             in_stack_ffffffb0);
          if (var_9 == (type_2 *)(var_2 + 0x36a41)) break;
          piVar5 = (int *)var_9[1];
          var_5 = (char *)*var_9;
          var_9 = var_9 + 6;
        }
      }
      *p = '\0';
      var_10(__stream,(char *)(var_2 + 0x1740d),var_2 + 0x38c89);
      return;
    }
    var_3 = var_9[0xf];
    var_9 = var_9 + 8;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (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: (number_literal))) (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: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) right: (number_literal)))))))) consequence: (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

void MASKED(void)

{
  undefined1 *puVar1;
  int extraout_ECX;
  char *pcVar2;
  int iVar3;
  int iVar4;
  undefined4 *puVar5;
  int *piVar6;
  int iVar7;
  int unaff_EDI;
  undefined8 uVar8;
  
  uVar8 = FUN_0001d569();
  iVar4 = (int)((ulonglong)uVar8 >> 0x20);
  iVar3 = 0;
  puVar1 = (undefined1 *)(unaff_EDI + 0x38ca4);
  iVar7 = 0;
  puVar5 = (undefined4 *)(unaff_EDI + 0x36a49);
  do {
    if (iVar3 == 0) {
      pcVar2 = (char *)*puVar5;
      iVar3 = puVar5[1];
      if (*pcVar2 == '.') {
        if (iVar4 != 0) {
          pcVar2 = pcVar2 + 1;
          iVar3 = iVar3 + -1;
LAB_000478c0:
          puVar1 = (undefined1 *)FUN_00047790(pcVar2,iVar3);
        }
      }
      else if ((iVar4 == 0) &&
              ((extraout_ECX == 0 || ((*(byte *)(unaff_EDI + 0x36a55 + iVar7 * 0x20) & 4) != 0))))
      goto LAB_000478c0;
    }
    iVar7 = iVar7 + 1;
    if (iVar7 == 0x84) {
      if (iVar4 != 0) {
        iVar4 = 4;
        piVar6 = (int *)(unaff_EDI + 0x36741);
        iVar3 = unaff_EDI + 0x1c4b5;
        while( true ) {
          puVar1 = (undefined1 *)FUN_00047790(iVar3,iVar4);
          if (piVar6 == (int *)(unaff_EDI + 0x36a41)) break;
          iVar4 = piVar6[1];
          iVar3 = *piVar6;
          piVar6 = piVar6 + 6;
        }
      }
      *puVar1 = 0;
      fprintf((FILE *)uVar8,&UNK_0001740d + unaff_EDI,unaff_EDI + 0x38c89);
      return;
    }
    iVar3 = puVar5[0xf];
    puVar5 = puVar5 + 8;
  } while( true );
}

