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

XMLTreeInfo * AddChildToXMLTree(XMLTreeInfo *xml_info,char *tag,size_t offset)

{
  XMLTreeInfo *pXVar1;
  char *pcVar2;
  MagickBooleanType MVar3;
  int iVar4;
  XMLTreeInfo *pXVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (xml_info != (XMLTreeInfo *)0x0) {
    pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30);
    if (pXVar1 != (XMLTreeInfo *)0x0) {
      pXVar5 = pXVar1;
      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {
        pXVar5->tag = (char *)0x0;
        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);
      }
      pcVar2 = ConstantString(tag);
      pXVar1->tag = pcVar2;
      pXVar1->attributes = sentinel;
      pcVar2 = ConstantString("");
      pXVar1->content = pcVar2;
      MVar3 = IsEventLogging();
      pXVar1->signature = 0xabacadab;
      pXVar1->debug = MVar3;
      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);
      return pXVar1;
    }
  }
  return (XMLTreeInfo *)0x0;
}



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

undefined4 AddChildToXMLTree(int param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  if (param_1 != 0) {
    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);
    if (puVar1 != (undefined4 *)0x0) {
      puVar4 = puVar1;
      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {
        *puVar4 = 0;
        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
      }
      uVar2 = ConstantString(param_2);
      *puVar1 = uVar2;
      puVar1[1] = &DAT_003dddc4;
      uVar2 = ConstantString(&DAT_0030570a);
      puVar1[2] = uVar2;
      uVar2 = IsEventLogging();
      puVar1[0xb] = 0xabacadab;
      puVar1[9] = uVar2;
      uVar2 = FUN_001c7760();
      return uVar2;
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x211707
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESP + 0x38]
MOV EBP,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],EAX
TEST EBP,EBP
JZ 0x001c7990
SUB ESP,0xc
PUSH 0x30
CALL 0x00030900
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x001c7990
XOR EAX,EAX
MOV EDI,ESI
MOV ECX,0xc
STOSD.REP ES:EDI
SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x18]
PUSH EDX
CALL 0x00033ab8
MOV dword ptr [ESI],EAX
LEA EAX,[EBX + 0x4dc4]
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[EBX + 0xfff2c70a]
MOV dword ptr [ESP],EAX
CALL 0x00033ab8
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
CALL 0x00030d70
MOV dword ptr [ESI + 0x2c],0xabacadab
MOV dword ptr [ESI + 0x24],EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x34],ESI
MOV dword ptr [ESP + 0x30],EBP
MOV dword ptr [ESP + 0x38],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x001c7760
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 AddChildToXMLTree(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 AddChildToXMLTree(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "AddChildToXMLTree(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)AcquireMagickMemory(0x30);" (assignment_expression "puVar1 = (undefined4 *)AcquireMagickMemory(0x30)" identifier = (cast_expression "(undefined4 *)AcquireMagickMemory(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }" { (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" identifier = identifier) ;) (for_statement "for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }" for ( (assignment_expression "iVar3 = 0xc" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "uVar2 = ConstantString(param_2);" (assignment_expression "uVar2 = ConstantString(param_2)" identifier = (call_expression "ConstantString(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = &DAT_003dddc4;" (assignment_expression "puVar1[1] = &DAT_003dddc4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&DAT_003dddc4" & identifier)) ;) (expression_statement "uVar2 = ConstantString(&DAT_0030570a);" (assignment_expression "uVar2 = ConstantString(&DAT_0030570a)" identifier = (call_expression "ConstantString(&DAT_0030570a)" identifier (argument_list "(&DAT_0030570a)" ( (pointer_expression "&DAT_0030570a" & identifier) )))) ;) (expression_statement "puVar1[2] = uVar2;" (assignment_expression "puVar1[2] = uVar2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = IsEventLogging();" (assignment_expression "uVar2 = IsEventLogging()" identifier = (call_expression "IsEventLogging()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1[0xb] = 0xabacadab;" (assignment_expression "puVar1[0xb] = 0xabacadab" (subscript_expression "puVar1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[9] = uVar2;" (assignment_expression "puVar1[9] = uVar2" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = FUN_001c7760();" (assignment_expression "uVar2 = FUN_001c7760()" identifier = (call_expression "FUN_001c7760()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nXMLTreeInfo * AddChildToXMLTree(XMLTreeInfo *xml_info,char *tag,size_t offset)\n\n{\n  XMLTreeInfo *pXVar1;\n  char *pcVar2;\n  MagickBooleanType MVar3;\n  int iVar4;\n  XMLTreeInfo *pXVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (xml_info != (XMLTreeInfo *)0x0) {\n    pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30);\n    if (pXVar1 != (XMLTreeInfo *)0x0) {\n      pXVar5 = pXVar1;\n      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }\n      pcVar2 = ConstantString(tag);\n      pXVar1->tag = pcVar2;\n      pXVar1->attributes = sentinel;\n      pcVar2 = ConstantString("");\n      pXVar1->content = pcVar2;\n      MVar3 = IsEventLogging();\n      pXVar1->signature = 0xabacadab;\n      pXVar1->debug = MVar3;\n      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);\n      return pXVar1;\n    }\n  }\n  return (XMLTreeInfo *)0x0;\n}\n\n" comment (function_definition "XMLTreeInfo * AddChildToXMLTree(XMLTreeInfo *xml_info,char *tag,size_t offset)\n\n{\n  XMLTreeInfo *pXVar1;\n  char *pcVar2;\n  MagickBooleanType MVar3;\n  int iVar4;\n  XMLTreeInfo *pXVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (xml_info != (XMLTreeInfo *)0x0) {\n    pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30);\n    if (pXVar1 != (XMLTreeInfo *)0x0) {\n      pXVar5 = pXVar1;\n      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }\n      pcVar2 = ConstantString(tag);\n      pXVar1->tag = pcVar2;\n      pXVar1->attributes = sentinel;\n      pcVar2 = ConstantString("");\n      pXVar1->content = pcVar2;\n      MVar3 = IsEventLogging();\n      pXVar1->signature = 0xabacadab;\n      pXVar1->debug = MVar3;\n      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);\n      return pXVar1;\n    }\n  }\n  return (XMLTreeInfo *)0x0;\n}" type_identifier (pointer_declarator "* AddChildToXMLTree(XMLTreeInfo *xml_info,char *tag,size_t offset)" * (function_declarator "AddChildToXMLTree(XMLTreeInfo *xml_info,char *tag,size_t offset)" identifier (parameter_list "(XMLTreeInfo *xml_info,char *tag,size_t offset)" ( (parameter_declaration "XMLTreeInfo *xml_info" type_identifier (pointer_declarator "*xml_info" * identifier)) , (parameter_declaration "char *tag" primitive_type (pointer_declarator "*tag" * identifier)) , (parameter_declaration "size_t offset" primitive_type identifier) )))) (compound_statement "{\n  XMLTreeInfo *pXVar1;\n  char *pcVar2;\n  MagickBooleanType MVar3;\n  int iVar4;\n  XMLTreeInfo *pXVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (xml_info != (XMLTreeInfo *)0x0) {\n    pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30);\n    if (pXVar1 != (XMLTreeInfo *)0x0) {\n      pXVar5 = pXVar1;\n      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }\n      pcVar2 = ConstantString(tag);\n      pXVar1->tag = pcVar2;\n      pXVar1->attributes = sentinel;\n      pcVar2 = ConstantString("");\n      pXVar1->content = pcVar2;\n      MVar3 = IsEventLogging();\n      pXVar1->signature = 0xabacadab;\n      pXVar1->debug = MVar3;\n      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);\n      return pXVar1;\n    }\n  }\n  return (XMLTreeInfo *)0x0;\n}" { (declaration "XMLTreeInfo *pXVar1;" type_identifier (pointer_declarator "*pXVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "MagickBooleanType MVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "XMLTreeInfo *pXVar5;" type_identifier (pointer_declarator "*pXVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (xml_info != (XMLTreeInfo *)0x0) {\n    pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30);\n    if (pXVar1 != (XMLTreeInfo *)0x0) {\n      pXVar5 = pXVar1;\n      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }\n      pcVar2 = ConstantString(tag);\n      pXVar1->tag = pcVar2;\n      pXVar1->attributes = sentinel;\n      pcVar2 = ConstantString("");\n      pXVar1->content = pcVar2;\n      MVar3 = IsEventLogging();\n      pXVar1->signature = 0xabacadab;\n      pXVar1->debug = MVar3;\n      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);\n      return pXVar1;\n    }\n  }" if (parenthesized_expression "(xml_info != (XMLTreeInfo *)0x0)" ( (binary_expression "xml_info != (XMLTreeInfo *)0x0" identifier != (cast_expression "(XMLTreeInfo *)0x0" ( (type_descriptor "XMLTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30);\n    if (pXVar1 != (XMLTreeInfo *)0x0) {\n      pXVar5 = pXVar1;\n      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }\n      pcVar2 = ConstantString(tag);\n      pXVar1->tag = pcVar2;\n      pXVar1->attributes = sentinel;\n      pcVar2 = ConstantString("");\n      pXVar1->content = pcVar2;\n      MVar3 = IsEventLogging();\n      pXVar1->signature = 0xabacadab;\n      pXVar1->debug = MVar3;\n      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);\n      return pXVar1;\n    }\n  }" { (expression_statement "pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30);" (assignment_expression "pXVar1 = (XMLTreeInfo *)AcquireMagickMemory(0x30)" identifier = (cast_expression "(XMLTreeInfo *)AcquireMagickMemory(0x30)" ( (type_descriptor "XMLTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (pXVar1 != (XMLTreeInfo *)0x0) {\n      pXVar5 = pXVar1;\n      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }\n      pcVar2 = ConstantString(tag);\n      pXVar1->tag = pcVar2;\n      pXVar1->attributes = sentinel;\n      pcVar2 = ConstantString("");\n      pXVar1->content = pcVar2;\n      MVar3 = IsEventLogging();\n      pXVar1->signature = 0xabacadab;\n      pXVar1->debug = MVar3;\n      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);\n      return pXVar1;\n    }" if (parenthesized_expression "(pXVar1 != (XMLTreeInfo *)0x0)" ( (binary_expression "pXVar1 != (XMLTreeInfo *)0x0" identifier != (cast_expression "(XMLTreeInfo *)0x0" ( (type_descriptor "XMLTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pXVar5 = pXVar1;\n      for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }\n      pcVar2 = ConstantString(tag);\n      pXVar1->tag = pcVar2;\n      pXVar1->attributes = sentinel;\n      pcVar2 = ConstantString("");\n      pXVar1->content = pcVar2;\n      MVar3 = IsEventLogging();\n      pXVar1->signature = 0xabacadab;\n      pXVar1->debug = MVar3;\n      pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);\n      return pXVar1;\n    }" { (expression_statement "pXVar5 = pXVar1;" (assignment_expression "pXVar5 = pXVar1" identifier = identifier) ;) (for_statement "for (iVar4 = 0xc; iVar4 != 0; iVar4 = iVar4 + -1) {\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }" for ( (assignment_expression "iVar4 = 0xc" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n        pXVar5->tag = (char *)0x0;\n        pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);\n      }" { (expression_statement "pXVar5->tag = (char *)0x0;" (assignment_expression "pXVar5->tag = (char *)0x0" (field_expression "pXVar5->tag" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4);" (assignment_expression "pXVar5 = (XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4)" identifier = (cast_expression "(XMLTreeInfo *)((int)pXVar5 + (uint)bVar6 * -8 + 4)" ( (type_descriptor "XMLTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pXVar5 + (uint)bVar6 * -8 + 4)" ( (binary_expression "(int)pXVar5 + (uint)bVar6 * -8 + 4" (binary_expression "(int)pXVar5 + (uint)bVar6 * -8" (cast_expression "(int)pXVar5" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar6 * -8" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "pcVar2 = ConstantString(tag);" (assignment_expression "pcVar2 = ConstantString(tag)" identifier = (call_expression "ConstantString(tag)" identifier (argument_list "(tag)" ( identifier )))) ;) (expression_statement "pXVar1->tag = pcVar2;" (assignment_expression "pXVar1->tag = pcVar2" (field_expression "pXVar1->tag" identifier -> field_identifier) = identifier) ;) (expression_statement "pXVar1->attributes = sentinel;" (assignment_expression "pXVar1->attributes = sentinel" (field_expression "pXVar1->attributes" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar2 = ConstantString("");" (assignment_expression "pcVar2 = ConstantString("")" identifier = (call_expression "ConstantString("")" identifier (argument_list "("")" ( (string_literal """" " ") )))) ;) (expression_statement "pXVar1->content = pcVar2;" (assignment_expression "pXVar1->content = pcVar2" (field_expression "pXVar1->content" identifier -> field_identifier) = identifier) ;) (expression_statement "MVar3 = IsEventLogging();" (assignment_expression "MVar3 = IsEventLogging()" identifier = (call_expression "IsEventLogging()" identifier (argument_list "()" ( )))) ;) (expression_statement "pXVar1->signature = 0xabacadab;" (assignment_expression "pXVar1->signature = 0xabacadab" (field_expression "pXVar1->signature" identifier -> field_identifier) = number_literal) ;) (expression_statement "pXVar1->debug = MVar3;" (assignment_expression "pXVar1->debug = MVar3" (field_expression "pXVar1->debug" identifier -> field_identifier) = identifier) ;) (expression_statement "pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset);" (assignment_expression "pXVar1 = InsertTagIntoXMLTree(xml_info,pXVar1,offset)" identifier = (call_expression "InsertTagIntoXMLTree(xml_info,pXVar1,offset)" identifier (argument_list "(xml_info,pXVar1,offset)" ( identifier , identifier , identifier )))) ;) (return_statement "return pXVar1;" return identifier ;) })) })) (return_statement "return (XMLTreeInfo *)0x0;" return (cast_expression "(XMLTreeInfo *)0x0" ( (type_descriptor "XMLTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 AddChildToXMLTree(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 AddChildToXMLTree(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "AddChildToXMLTree(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)AcquireMagickMemory(0x30);" (assignment_expression "puVar1 = (undefined4 *)AcquireMagickMemory(0x30)" identifier = (cast_expression "(undefined4 *)AcquireMagickMemory(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }" { (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" identifier = identifier) ;) (for_statement "for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }" for ( (assignment_expression "iVar3 = 0xc" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "uVar2 = ConstantString(param_2);" (assignment_expression "uVar2 = ConstantString(param_2)" identifier = (call_expression "ConstantString(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = &DAT_003dddc4;" (assignment_expression "puVar1[1] = &DAT_003dddc4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&DAT_003dddc4" & identifier)) ;) (expression_statement "uVar2 = ConstantString(&DAT_0030570a);" (assignment_expression "uVar2 = ConstantString(&DAT_0030570a)" identifier = (call_expression "ConstantString(&DAT_0030570a)" identifier (argument_list "(&DAT_0030570a)" ( (pointer_expression "&DAT_0030570a" & identifier) )))) ;) (expression_statement "puVar1[2] = uVar2;" (assignment_expression "puVar1[2] = uVar2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = IsEventLogging();" (assignment_expression "uVar2 = IsEventLogging()" identifier = (call_expression "IsEventLogging()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1[0xb] = 0xabacadab;" (assignment_expression "puVar1[0xb] = 0xabacadab" (subscript_expression "puVar1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[9] = uVar2;" (assignment_expression "puVar1[9] = uVar2" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = FUN_001c7760();" (assignment_expression "uVar2 = FUN_001c7760()" identifier = (call_expression "FUN_001c7760()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 AddChildToXMLTree(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "AddChildToXMLTree(int param_1,undefined4 param_2)" (identifier "AddChildToXMLTree") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != 0) {\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)AcquireMagickMemory(0x30);" (assignment_expression "puVar1 = (undefined4 *)AcquireMagickMemory(0x30)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)AcquireMagickMemory(0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireMagickMemory(0x30)" (identifier "AcquireMagickMemory") (argument_list "(0x30)" (( "(") (number_literal "0x30") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar4 = puVar1;\n      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }\n      uVar2 = ConstantString(param_2);\n      *puVar1 = uVar2;\n      puVar1[1] = &DAT_003dddc4;\n      uVar2 = ConstantString(&DAT_0030570a);\n      puVar1[2] = uVar2;\n      uVar2 = IsEventLogging();\n      puVar1[0xb] = 0xabacadab;\n      puVar1[9] = uVar2;\n      uVar2 = FUN_001c7760();\n      return uVar2;\n    }" ({ "{") (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" (identifier "puVar4") (= "=") (identifier "puVar1")) (; ";")) (for_statement "for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }" (for "for") (( "(") (assignment_expression "iVar3 = 0xc" (identifier "iVar3") (= "=") (number_literal "0xc")) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        *puVar4 = 0;\n        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n      }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar2 = ConstantString(param_2);" (assignment_expression "uVar2 = ConstantString(param_2)" (identifier "uVar2") (= "=") (call_expression "ConstantString(param_2)" (identifier "ConstantString") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar1[1] = &DAT_003dddc4;" (assignment_expression "puVar1[1] = &DAT_003dddc4" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&DAT_003dddc4" (& "&") (identifier "DAT_003dddc4"))) (; ";")) (expression_statement "uVar2 = ConstantString(&DAT_0030570a);" (assignment_expression "uVar2 = ConstantString(&DAT_0030570a)" (identifier "uVar2") (= "=") (call_expression "ConstantString(&DAT_0030570a)" (identifier "ConstantString") (argument_list "(&DAT_0030570a)" (( "(") (pointer_expression "&DAT_0030570a" (& "&") (identifier "DAT_0030570a")) () ")")))) (; ";")) (expression_statement "puVar1[2] = uVar2;" (assignment_expression "puVar1[2] = uVar2" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = IsEventLogging();" (assignment_expression "uVar2 = IsEventLogging()" (identifier "uVar2") (= "=") (call_expression "IsEventLogging()" (identifier "IsEventLogging") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar1[0xb] = 0xabacadab;" (assignment_expression "puVar1[0xb] = 0xabacadab" (subscript_expression "puVar1[0xb]" (identifier "puVar1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0xabacadab")) (; ";")) (expression_statement "puVar1[9] = uVar2;" (assignment_expression "puVar1[9] = uVar2" (subscript_expression "puVar1[9]" (identifier "puVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = FUN_001c7760();" (assignment_expression "uVar2 = FUN_001c7760()" (identifier "uVar2") (= "=") (call_expression "FUN_001c7760()" (identifier "FUN_001c7760") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *var_1,char *tag,size_t offset)

{
  type_1 *var_3;
  char *pcVar2;
  type_2 MVar3;
  int var_4;
  type_1 *pXVar5;
  type_3 bVar6;
  
  bVar6 = 0;
  if (var_1 != (type_1 *)0x0) {
    var_3 = (type_1 *)var_2(0x30);
    if (var_3 != (type_1 *)0x0) {
      pXVar5 = var_3;
      for (var_4 = 0xc; var_4 != 0; var_4 = var_4 + -1) {
        pXVar5->tag = (char *)0x0;
        pXVar5 = (type_1 *)((int)pXVar5 + (type_4)bVar6 * -8 + 4);
      }
      pcVar2 = var_5(tag);
      var_3->tag = pcVar2;
      var_3->attributes = sentinel;
      pcVar2 = var_5("");
      var_3->content = pcVar2;
      MVar3 = var_6();
      var_3->signature = 0xabacadab;
      var_3->debug = MVar3;
      var_3 = var_7(var_1,var_3,offset);
      return var_3;
    }
  }
  return (type_1 *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))))) (return_statement (number_literal)))))

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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  if (param_1 != 0) {
    puVar1 = (undefined4 *)AcquireMagickMemory(0x30);
    if (puVar1 != (undefined4 *)0x0) {
      puVar4 = puVar1;
      for (iVar3 = 0xc; iVar3 != 0; iVar3 = iVar3 + -1) {
        *puVar4 = 0;
        puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
      }
      uVar2 = ConstantString(param_2);
      *puVar1 = uVar2;
      puVar1[1] = &DAT_003dddc4;
      uVar2 = ConstantString(&DAT_0030570a);
      puVar1[2] = uVar2;
      uVar2 = IsEventLogging();
      puVar1[0xb] = 0xabacadab;
      puVar1[9] = uVar2;
      uVar2 = FUN_001c7760();
      return uVar2;
    }
  }
  return 0;
}

