
char * MagickToMime(char *magick)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  undefined *puVar5;
  char filename [4096];
  char media [4096];
  
  puVar5 = PTR___stack_chk_guard_003a9230;
  iVar1 = *(int *)PTR___stack_chk_guard_003a9230;
  (*(code *)PTR_FormatLocaleString_003a8d7c)
            (filename,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,magick);
  (*(code *)PTR_LocaleLower_003a8d4c)(filename);
  uVar2 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();
  iVar3 = (*(code *)PTR_GetMimeInfo_003a9894)(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2);
  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar2);
  if (iVar3 == 0) {
    (*(code *)PTR_FormatLocaleString_003a8d7c)
              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick);
    (*(code *)PTR_LocaleLower_003a8d4c)(media + 8);
    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media);
  }
  else {
    uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);
    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);
  }
  if (iVar1 == *(int *)puVar5) {
    return pcVar4;
  }
  puVar5 = PTR___stack_chk_fail_003a9064;
  (*(code *)PTR___stack_chk_fail_003a9064)();
  iVar1 = *(int *)(puVar5 + 0x29318c);
  if (*(int *)(iVar1 + -0x4f30) != 0) {
    return (char *)0x1;
  }
  uVar2 = (**(code **)(puVar5 + 0x293eec))();
  *(undefined4 *)(iVar1 + -0x4f30) = uVar2;
  return (char *)0x1;
}



undefined4 MagickToMime(undefined4 param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined *puVar3;
  undefined1 auStack_201c [4096];
  undefined1 auStack_101c [8];
  undefined1 auStack_1014 [4088];
  int local_1c;
  
  puVar3 = PTR___stack_chk_guard_003a9230;
  local_1c = *(int *)PTR___stack_chk_guard_003a9230;
  (*(code *)PTR_FormatLocaleString_003a8d7c)
            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);
  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);
  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();
  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);
  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);
  if (iVar2 == 0) {
    (*(code *)PTR_FormatLocaleString_003a8d7c)
              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);
    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);
    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);
  }
  else {
    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);
    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);
  }
  if (local_1c == *(int *)puVar3) {
    return uVar1;
  }
  puVar3 = PTR___stack_chk_fail_003a9064;
  (*(code *)PTR___stack_chk_fail_003a9064)();
  iVar2 = *(int *)(puVar3 + 0x29318c);
  if (*(int *)(iVar2 + -0x4f30) != 0) {
    return 1;
  }
  uVar1 = (**(code **)(puVar3 + 0x293eec))();
  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;
  return 1;
}


lui gp,0x2a
addiu gp,gp,-0x4d38
addu gp,gp,t9
addiu sp,sp,-0x2038
lw a2,-0x7fcc(gp)
lw t9,-0x7b34(gp)
li a1,0x1000
or a3,a0,zero
sw s1,0x2028(sp)
addiu a2,a2,-0x2bc8
lw s1,-0x7680(gp)
sw s0,0x2024(sp)
addiu s0,sp,0x1c
sw ra,0x2034(sp)
sw gp,0x10(sp)
sw s3,0x2030(sp)
or s3,a0,zero
sw s2,0x202c(sp)
or a0,s0,zero
lw v0,0x0(s1)
sw v0,0x201c(sp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7b64(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x79c4(gp)
jalr t9
_nop
li a2,0x1
lw gp,0x10(sp)
or a0,s0,zero
or a3,v0,zero
or s2,v0,zero
lw a1,-0x7f60(gp)
lw t9,-0x701c(gp)
jalr t9
_addiu a1,a1,0x2158
or a0,s2,zero
lw gp,0x10(sp)
lw t9,-0x7b60(gp)
jalr t9
_or s0,v0,zero
beq s0,zero,0x001156ec
_lw gp,0x10(sp)
lw t9,-0x79f8(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x77fc(gp)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
lw a0,0x201c(sp)
lw v1,0x0(s1)
bne a0,v1,0x00115734
_lw ra,0x2034(sp)
lw s3,0x2030(sp)
lw s2,0x202c(sp)
lw s1,0x2028(sp)
lw s0,0x2024(sp)
jr ra
_addiu sp,sp,0x2038
lw a2,-0x7fcc(gp)
addiu s0,sp,0x101c
lw t9,-0x7b34(gp)
li a1,0x1000
or a3,s3,zero
addiu a2,a2,-0x2bc0
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7b64(gp)
jalr t9
_addiu a0,sp,0x1024
lw gp,0x10(sp)
lw t9,-0x77fc(gp)
jalr t9
_or a0,s0,zero
b 0x001156c4
_lw gp,0x10(sp)
lw t9,-0x784c(gp)
jalr t9
_nop
(translation_unit "undefined4 MagickToMime(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}\n\n" (function_definition "undefined4 MagickToMime(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}" type_identifier (function_declarator "MagickToMime(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 auStack_201c [4096];" type_identifier (array_declarator "auStack_201c [4096]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_101c [8];" type_identifier (array_declarator "auStack_101c [8]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_1014 [4088];" type_identifier (array_declarator "auStack_1014 [4088]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar3 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" ( (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" * (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1)" ( identifier , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc8" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" ( (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" * (cast_expression "(code *)PTR_LocaleLower_003a8d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_201c)" ( identifier ))) ;) (expression_statement "uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();" (assignment_expression "uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)()" identifier = (call_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)()" (parenthesized_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)" ( (pointer_expression "*(code *)PTR_AcquireExceptionInfo_003a8eec" * (cast_expression "(code *)PTR_AcquireExceptionInfo_003a8eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);" (assignment_expression "iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" identifier = (call_expression "(*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" (parenthesized_expression "(*(code *)PTR_GetMimeInfo_003a9894)" ( (pointer_expression "*(code *)PTR_GetMimeInfo_003a9894" * (cast_expression "(code *)PTR_GetMimeInfo_003a9894" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" ( identifier , (binary_expression "PTR_UINT_003a8950 + 0x2158" identifier + number_literal) , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);" (call_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1)" (parenthesized_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)" ( (pointer_expression "*(code *)PTR_DestroyExceptionInfo_003a8d50" * (cast_expression "(code *)PTR_DestroyExceptionInfo_003a8d50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }" { (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" ( (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" * (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1)" ( identifier , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc0" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" ( (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" * (cast_expression "(code *)PTR_LocaleLower_003a8d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_1014)" ( identifier ))) ;) (expression_statement "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);" (assignment_expression "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c)" identifier = (call_expression "(*(code *)PTR_ConstantString_003a90b4)(auStack_101c)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" ( (pointer_expression "*(code *)PTR_ConstantString_003a90b4" * (cast_expression "(code *)PTR_ConstantString_003a90b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_101c)" ( identifier )))) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);" (assignment_expression "uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2)" identifier = (call_expression "(*(code *)PTR_GetMimeType_003a8eb8)(iVar2)" (parenthesized_expression "(*(code *)PTR_GetMimeType_003a8eb8)" ( (pointer_expression "*(code *)PTR_GetMimeType_003a8eb8" * (cast_expression "(code *)PTR_GetMimeType_003a8eb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1)" identifier = (call_expression "(*(code *)PTR_ConstantString_003a90b4)(uVar1)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" ( (pointer_expression "*(code *)PTR_ConstantString_003a90b4" * (cast_expression "(code *)PTR_ConstantString_003a90b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) }))) (if_statement "if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar3)" ( (binary_expression "local_1c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar3 = PTR___stack_chk_fail_003a9064" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(puVar3 + 0x29318c);" (assignment_expression "iVar2 = *(int *)(puVar3 + 0x29318c)" identifier = (pointer_expression "*(int *)(puVar3 + 0x29318c)" * (cast_expression "(int *)(puVar3 + 0x29318c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x29318c)" ( (binary_expression "puVar3 + 0x29318c" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + -0x4f30) != 0)" ( (binary_expression "*(int *)(iVar2 + -0x4f30) != 0" (pointer_expression "*(int *)(iVar2 + -0x4f30)" * (cast_expression "(int *)(iVar2 + -0x4f30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0x4f30)" ( (binary_expression "iVar2 + -0x4f30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = (**(code **)(puVar3 + 0x293eec))();" (assignment_expression "uVar1 = (**(code **)(puVar3 + 0x293eec))()" identifier = (call_expression "(**(code **)(puVar3 + 0x293eec))()" (parenthesized_expression "(**(code **)(puVar3 + 0x293eec))" ( (pointer_expression "**(code **)(puVar3 + 0x293eec)" * (pointer_expression "*(code **)(puVar3 + 0x293eec)" * (cast_expression "(code **)(puVar3 + 0x293eec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x293eec)" ( (binary_expression "puVar3 + 0x293eec" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + -0x4f30) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + -0x4f30) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + -0x4f30)" * (cast_expression "(undefined4 *)(iVar2 + -0x4f30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0x4f30)" ( (binary_expression "iVar2 + -0x4f30" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "char * MagickToMime(char *magick)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  char filename [4096];\n  char media [4096];\n  \n  puVar5 = PTR___stack_chk_guard_003a9230;\n  iVar1 = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (filename,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,magick);\n  (*(code *)PTR_LocaleLower_003a8d4c)(filename);\n  uVar2 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar3 = (*(code *)PTR_GetMimeInfo_003a9894)(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar2);\n  if (iVar3 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick);\n    (*(code *)PTR_LocaleLower_003a8d4c)(media + 8);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media);\n  }\n  else {\n    uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);\n  }\n  if (iVar1 == *(int *)puVar5) {\n    return pcVar4;\n  }\n  puVar5 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar1 = *(int *)(puVar5 + 0x29318c);\n  if (*(int *)(iVar1 + -0x4f30) != 0) {\n    return (char *)0x1;\n  }\n  uVar2 = (**(code **)(puVar5 + 0x293eec))();\n  *(undefined4 *)(iVar1 + -0x4f30) = uVar2;\n  return (char *)0x1;\n}\n\n" (function_definition "char * MagickToMime(char *magick)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  char filename [4096];\n  char media [4096];\n  \n  puVar5 = PTR___stack_chk_guard_003a9230;\n  iVar1 = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (filename,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,magick);\n  (*(code *)PTR_LocaleLower_003a8d4c)(filename);\n  uVar2 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar3 = (*(code *)PTR_GetMimeInfo_003a9894)(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar2);\n  if (iVar3 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick);\n    (*(code *)PTR_LocaleLower_003a8d4c)(media + 8);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media);\n  }\n  else {\n    uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);\n  }\n  if (iVar1 == *(int *)puVar5) {\n    return pcVar4;\n  }\n  puVar5 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar1 = *(int *)(puVar5 + 0x29318c);\n  if (*(int *)(iVar1 + -0x4f30) != 0) {\n    return (char *)0x1;\n  }\n  uVar2 = (**(code **)(puVar5 + 0x293eec))();\n  *(undefined4 *)(iVar1 + -0x4f30) = uVar2;\n  return (char *)0x1;\n}" primitive_type (pointer_declarator "* MagickToMime(char *magick)" * (function_declarator "MagickToMime(char *magick)" identifier (parameter_list "(char *magick)" ( (parameter_declaration "char *magick" primitive_type (pointer_declarator "*magick" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  char filename [4096];\n  char media [4096];\n  \n  puVar5 = PTR___stack_chk_guard_003a9230;\n  iVar1 = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (filename,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,magick);\n  (*(code *)PTR_LocaleLower_003a8d4c)(filename);\n  uVar2 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar3 = (*(code *)PTR_GetMimeInfo_003a9894)(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar2);\n  if (iVar3 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick);\n    (*(code *)PTR_LocaleLower_003a8d4c)(media + 8);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media);\n  }\n  else {\n    uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);\n  }\n  if (iVar1 == *(int *)puVar5) {\n    return pcVar4;\n  }\n  puVar5 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar1 = *(int *)(puVar5 + 0x29318c);\n  if (*(int *)(iVar1 + -0x4f30) != 0) {\n    return (char *)0x1;\n  }\n  uVar2 = (**(code **)(puVar5 + 0x293eec))();\n  *(undefined4 *)(iVar1 + -0x4f30) = uVar2;\n  return (char *)0x1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char filename [4096];" primitive_type (array_declarator "filename [4096]" identifier [ number_literal ]) ;) (declaration "char media [4096];" primitive_type (array_declarator "media [4096]" identifier [ number_literal ]) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar5 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (filename,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,magick);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (filename,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,magick)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" ( (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" * (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,magick)" ( identifier , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc8" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(filename);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(filename)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" ( (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" * (cast_expression "(code *)PTR_LocaleLower_003a8d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename)" ( identifier ))) ;) (expression_statement "uVar2 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();" (assignment_expression "uVar2 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)()" identifier = (call_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)()" (parenthesized_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)" ( (pointer_expression "*(code *)PTR_AcquireExceptionInfo_003a8eec" * (cast_expression "(code *)PTR_AcquireExceptionInfo_003a8eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (*(code *)PTR_GetMimeInfo_003a9894)(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_GetMimeInfo_003a9894)(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2)" identifier = (call_expression "(*(code *)PTR_GetMimeInfo_003a9894)(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2)" (parenthesized_expression "(*(code *)PTR_GetMimeInfo_003a9894)" ( (pointer_expression "*(code *)PTR_GetMimeInfo_003a9894" * (cast_expression "(code *)PTR_GetMimeInfo_003a9894" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename,PTR_UINT_003a8950 + 0x2158,1,uVar2)" ( identifier , (binary_expression "PTR_UINT_003a8950 + 0x2158" identifier + number_literal) , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar2);" (call_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar2)" (parenthesized_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)" ( (pointer_expression "*(code *)PTR_DestroyExceptionInfo_003a8d50" * (cast_expression "(code *)PTR_DestroyExceptionInfo_003a8d50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick);\n    (*(code *)PTR_LocaleLower_003a8d4c)(media + 8);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media);\n  }\n  else {\n    uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick);\n    (*(code *)PTR_LocaleLower_003a8d4c)(media + 8);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media);\n  }" { (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" ( (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" * (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(media,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,magick)" ( identifier , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc0" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(media + 8);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(media + 8)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" ( (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" * (cast_expression "(code *)PTR_LocaleLower_003a8d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(media + 8)" ( (binary_expression "media + 8" identifier + number_literal) ))) ;) (expression_statement "pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(media)" identifier = (cast_expression "(char *)(*(code *)PTR_ConstantString_003a90b4)(media)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_ConstantString_003a90b4)(media)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" ( (pointer_expression "*(code *)PTR_ConstantString_003a90b4" * (cast_expression "(code *)PTR_ConstantString_003a90b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(media)" ( identifier ))))) ;) }) (else_clause "else {\n    uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);\n  }" else (compound_statement "{\n    uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);\n    pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);\n  }" { (expression_statement "uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3);" (assignment_expression "uVar2 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar3)" identifier = (call_expression "(*(code *)PTR_GetMimeType_003a8eb8)(iVar3)" (parenthesized_expression "(*(code *)PTR_GetMimeType_003a8eb8)" ( (pointer_expression "*(code *)PTR_GetMimeType_003a8eb8" * (cast_expression "(code *)PTR_GetMimeType_003a8eb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2)" identifier = (cast_expression "(char *)(*(code *)PTR_ConstantString_003a90b4)(uVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_ConstantString_003a90b4)(uVar2)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" ( (pointer_expression "*(code *)PTR_ConstantString_003a90b4" * (cast_expression "(code *)PTR_ConstantString_003a90b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))))) ;) }))) (if_statement "if (iVar1 == *(int *)puVar5) {\n    return pcVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar5)" ( (binary_expression "iVar1 == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return pcVar4;\n  }" { (return_statement "return pcVar4;" return identifier ;) })) (expression_statement "puVar5 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar5 = PTR___stack_chk_fail_003a9064" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(puVar5 + 0x29318c);" (assignment_expression "iVar1 = *(int *)(puVar5 + 0x29318c)" identifier = (pointer_expression "*(int *)(puVar5 + 0x29318c)" * (cast_expression "(int *)(puVar5 + 0x29318c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x29318c)" ( (binary_expression "puVar5 + 0x29318c" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + -0x4f30) != 0) {\n    return (char *)0x1;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + -0x4f30) != 0)" ( (binary_expression "*(int *)(iVar1 + -0x4f30) != 0" (pointer_expression "*(int *)(iVar1 + -0x4f30)" * (cast_expression "(int *)(iVar1 + -0x4f30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x4f30)" ( (binary_expression "iVar1 + -0x4f30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return (char *)0x1;\n  }" { (return_statement "return (char *)0x1;" return (cast_expression "(char *)0x1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar2 = (**(code **)(puVar5 + 0x293eec))();" (assignment_expression "uVar2 = (**(code **)(puVar5 + 0x293eec))()" identifier = (call_expression "(**(code **)(puVar5 + 0x293eec))()" (parenthesized_expression "(**(code **)(puVar5 + 0x293eec))" ( (pointer_expression "**(code **)(puVar5 + 0x293eec)" * (pointer_expression "*(code **)(puVar5 + 0x293eec)" * (cast_expression "(code **)(puVar5 + 0x293eec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x293eec)" ( (binary_expression "puVar5 + 0x293eec" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar1 + -0x4f30) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + -0x4f30) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + -0x4f30)" * (cast_expression "(undefined4 *)(iVar1 + -0x4f30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x4f30)" ( (binary_expression "iVar1 + -0x4f30" identifier + number_literal) )))) = identifier) ;) (return_statement "return (char *)0x1;" return (cast_expression "(char *)0x1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 MagickToMime(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}\n\n" (function_definition "undefined4 MagickToMime(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}" type_identifier (function_declarator "MagickToMime(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 auStack_201c [4096];" type_identifier (array_declarator "auStack_201c [4096]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_101c [8];" type_identifier (array_declarator "auStack_101c [8]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_1014 [4088];" type_identifier (array_declarator "auStack_1014 [4088]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar3 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" ( (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" * (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1)" ( identifier , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc8" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" ( (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" * (cast_expression "(code *)PTR_LocaleLower_003a8d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_201c)" ( identifier ))) ;) (expression_statement "uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();" (assignment_expression "uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)()" identifier = (call_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)()" (parenthesized_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)" ( (pointer_expression "*(code *)PTR_AcquireExceptionInfo_003a8eec" * (cast_expression "(code *)PTR_AcquireExceptionInfo_003a8eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);" (assignment_expression "iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" identifier = (call_expression "(*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" (parenthesized_expression "(*(code *)PTR_GetMimeInfo_003a9894)" ( (pointer_expression "*(code *)PTR_GetMimeInfo_003a9894" * (cast_expression "(code *)PTR_GetMimeInfo_003a9894" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" ( identifier , (binary_expression "PTR_UINT_003a8950 + 0x2158" identifier + number_literal) , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);" (call_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1)" (parenthesized_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)" ( (pointer_expression "*(code *)PTR_DestroyExceptionInfo_003a8d50" * (cast_expression "(code *)PTR_DestroyExceptionInfo_003a8d50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }" { (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" ( (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" * (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1)" ( identifier , number_literal , (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc0" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" ( (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" * (cast_expression "(code *)PTR_LocaleLower_003a8d4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_1014)" ( identifier ))) ;) (expression_statement "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);" (assignment_expression "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c)" identifier = (call_expression "(*(code *)PTR_ConstantString_003a90b4)(auStack_101c)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" ( (pointer_expression "*(code *)PTR_ConstantString_003a90b4" * (cast_expression "(code *)PTR_ConstantString_003a90b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_101c)" ( identifier )))) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);" (assignment_expression "uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2)" identifier = (call_expression "(*(code *)PTR_GetMimeType_003a8eb8)(iVar2)" (parenthesized_expression "(*(code *)PTR_GetMimeType_003a8eb8)" ( (pointer_expression "*(code *)PTR_GetMimeType_003a8eb8" * (cast_expression "(code *)PTR_GetMimeType_003a8eb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1)" identifier = (call_expression "(*(code *)PTR_ConstantString_003a90b4)(uVar1)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" ( (pointer_expression "*(code *)PTR_ConstantString_003a90b4" * (cast_expression "(code *)PTR_ConstantString_003a90b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) }))) (if_statement "if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar3)" ( (binary_expression "local_1c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar3 = PTR___stack_chk_fail_003a9064" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(puVar3 + 0x29318c);" (assignment_expression "iVar2 = *(int *)(puVar3 + 0x29318c)" identifier = (pointer_expression "*(int *)(puVar3 + 0x29318c)" * (cast_expression "(int *)(puVar3 + 0x29318c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x29318c)" ( (binary_expression "puVar3 + 0x29318c" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + -0x4f30) != 0)" ( (binary_expression "*(int *)(iVar2 + -0x4f30) != 0" (pointer_expression "*(int *)(iVar2 + -0x4f30)" * (cast_expression "(int *)(iVar2 + -0x4f30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0x4f30)" ( (binary_expression "iVar2 + -0x4f30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = (**(code **)(puVar3 + 0x293eec))();" (assignment_expression "uVar1 = (**(code **)(puVar3 + 0x293eec))()" identifier = (call_expression "(**(code **)(puVar3 + 0x293eec))()" (parenthesized_expression "(**(code **)(puVar3 + 0x293eec))" ( (pointer_expression "**(code **)(puVar3 + 0x293eec)" * (pointer_expression "*(code **)(puVar3 + 0x293eec)" * (cast_expression "(code **)(puVar3 + 0x293eec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x293eec)" ( (binary_expression "puVar3 + 0x293eec" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + -0x4f30) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + -0x4f30) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + -0x4f30)" * (cast_expression "(undefined4 *)(iVar2 + -0x4f30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0x4f30)" ( (binary_expression "iVar2 + -0x4f30" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 MagickToMime(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "MagickToMime(undefined4 param_1)" (identifier "MagickToMime") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined1 auStack_201c [4096];\n  undefined1 auStack_101c [8];\n  undefined1 auStack_1014 [4088];\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_003a9230;\n  local_1c = *(int *)PTR___stack_chk_guard_003a9230;\n  (*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);\n  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);\n  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();\n  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);\n  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);\n  if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }\n  if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_003a9064;\n  (*(code *)PTR___stack_chk_fail_003a9064)();\n  iVar2 = *(int *)(puVar3 + 0x29318c);\n  if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }\n  uVar1 = (**(code **)(puVar3 + 0x293eec))();\n  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;\n  return 1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 auStack_201c [4096];" (type_identifier "undefined1") (array_declarator "auStack_201c [4096]" (identifier "auStack_201c") ([ "[") (number_literal "4096") (] "]")) (; ";")) (declaration "undefined1 auStack_101c [8];" (type_identifier "undefined1") (array_declarator "auStack_101c [8]" (identifier "auStack_101c") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined1 auStack_1014 [4088];" (type_identifier "undefined1") (array_declarator "auStack_1014 [4088]" (identifier "auStack_1014") ([ "[") (number_literal "4088") (] "]")) (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar3 = PTR___stack_chk_guard_003a9230" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_003a9230")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_003a9230" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_003a9230" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_003a9230")))) (; ";")) (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" (( "(") (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" (* "*") (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FormatLocaleString_003a8d7c"))) () ")")) (argument_list "(auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1)" (( "(") (identifier "auStack_201c") (, ",") (number_literal "0x1000") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc8" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x2bc8")) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" (( "(") (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" (* "*") (cast_expression "(code *)PTR_LocaleLower_003a8d4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LocaleLower_003a8d4c"))) () ")")) (argument_list "(auStack_201c)" (( "(") (identifier "auStack_201c") () ")"))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();" (assignment_expression "uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)()" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)()" (parenthesized_expression "(*(code *)PTR_AcquireExceptionInfo_003a8eec)" (( "(") (pointer_expression "*(code *)PTR_AcquireExceptionInfo_003a8eec" (* "*") (cast_expression "(code *)PTR_AcquireExceptionInfo_003a8eec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_AcquireExceptionInfo_003a8eec"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);" (assignment_expression "iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" (parenthesized_expression "(*(code *)PTR_GetMimeInfo_003a9894)" (( "(") (pointer_expression "*(code *)PTR_GetMimeInfo_003a9894" (* "*") (cast_expression "(code *)PTR_GetMimeInfo_003a9894" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetMimeInfo_003a9894"))) () ")")) (argument_list "(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1)" (( "(") (identifier "auStack_201c") (, ",") (binary_expression "PTR_UINT_003a8950 + 0x2158" (identifier "PTR_UINT_003a8950") (+ "+") (number_literal "0x2158")) (, ",") (number_literal "1") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);" (call_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1)" (parenthesized_expression "(*(code *)PTR_DestroyExceptionInfo_003a8d50)" (( "(") (pointer_expression "*(code *)PTR_DestroyExceptionInfo_003a8d50" (* "*") (cast_expression "(code *)PTR_DestroyExceptionInfo_003a8d50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyExceptionInfo_003a8d50"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }\n  else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);\n    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);\n  }" ({ "{") (expression_statement "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);" (call_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)\n              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1)" (parenthesized_expression "(*(code *)PTR_FormatLocaleString_003a8d7c)" (( "(") (pointer_expression "*(code *)PTR_FormatLocaleString_003a8d7c" (* "*") (cast_expression "(code *)PTR_FormatLocaleString_003a8d7c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FormatLocaleString_003a8d7c"))) () ")")) (argument_list "(auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1)" (( "(") (identifier "auStack_101c") (, ",") (number_literal "0x1000") (, ",") (binary_expression "PTR_s_t_to_left_003a88e4 + -0x2bc0" (identifier "PTR_s_t_to_left_003a88e4") (+ "+") (number_literal "-0x2bc0")) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);" (call_expression "(*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014)" (parenthesized_expression "(*(code *)PTR_LocaleLower_003a8d4c)" (( "(") (pointer_expression "*(code *)PTR_LocaleLower_003a8d4c" (* "*") (cast_expression "(code *)PTR_LocaleLower_003a8d4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LocaleLower_003a8d4c"))) () ")")) (argument_list "(auStack_1014)" (( "(") (identifier "auStack_1014") () ")"))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);" (assignment_expression "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_ConstantString_003a90b4)(auStack_101c)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" (( "(") (pointer_expression "*(code *)PTR_ConstantString_003a90b4" (* "*") (cast_expression "(code *)PTR_ConstantString_003a90b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ConstantString_003a90b4"))) () ")")) (argument_list "(auStack_101c)" (( "(") (identifier "auStack_101c") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" (else "else") (compound_statement "{\n    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);\n    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);" (assignment_expression "uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_GetMimeType_003a8eb8)(iVar2)" (parenthesized_expression "(*(code *)PTR_GetMimeType_003a8eb8)" (( "(") (pointer_expression "*(code *)PTR_GetMimeType_003a8eb8" (* "*") (cast_expression "(code *)PTR_GetMimeType_003a8eb8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetMimeType_003a8eb8"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_ConstantString_003a90b4)(uVar1)" (parenthesized_expression "(*(code *)PTR_ConstantString_003a90b4)" (( "(") (pointer_expression "*(code *)PTR_ConstantString_003a90b4" (* "*") (cast_expression "(code *)PTR_ConstantString_003a90b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ConstantString_003a90b4"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (} "}")))) (if_statement "if (local_1c == *(int *)puVar3) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar3)" (( "(") (binary_expression "local_1c == *(int *)puVar3" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "puVar3 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar3 = PTR___stack_chk_fail_003a9064" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_fail_003a9064")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_003a9064" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_003a9064"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(puVar3 + 0x29318c);" (assignment_expression "iVar2 = *(int *)(puVar3 + 0x29318c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(puVar3 + 0x29318c)" (* "*") (cast_expression "(int *)(puVar3 + 0x29318c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x29318c)" (( "(") (binary_expression "puVar3 + 0x29318c" (identifier "puVar3") (+ "+") (number_literal "0x29318c")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar2 + -0x4f30) != 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + -0x4f30) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + -0x4f30) != 0" (pointer_expression "*(int *)(iVar2 + -0x4f30)" (* "*") (cast_expression "(int *)(iVar2 + -0x4f30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0x4f30)" (( "(") (binary_expression "iVar2 + -0x4f30" (identifier "iVar2") (+ "+") (number_literal "-0x4f30")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar1 = (**(code **)(puVar3 + 0x293eec))();" (assignment_expression "uVar1 = (**(code **)(puVar3 + 0x293eec))()" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar3 + 0x293eec))()" (parenthesized_expression "(**(code **)(puVar3 + 0x293eec))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x293eec)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x293eec)" (* "*") (cast_expression "(code **)(puVar3 + 0x293eec)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x293eec)" (( "(") (binary_expression "puVar3 + 0x293eec" (identifier "puVar3") (+ "+") (number_literal "0x293eec")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + -0x4f30) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + -0x4f30) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + -0x4f30)" (* "*") (cast_expression "(undefined4 *)(iVar2 + -0x4f30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0x4f30)" (( "(") (binary_expression "iVar2 + -0x4f30" (identifier "iVar2") (+ "+") (number_literal "-0x4f30")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

char * function_1(char *magick)

{
  int var_5;
  type_1 uVar2;
  int var_3;
  char *pcVar4;
  type_2 *var_6;
  char filename [4096];
  char var_4 [4096];
  
  var_6 = PTR___stack_chk_guard_003a9230;
  var_5 = *(int *)PTR___stack_chk_guard_003a9230;
  (*(type_3 *)PTR_FormatLocaleString_003a8d7c)
            (filename,0x1000,var_1 + -0x2bc8,magick);
  (*(type_3 *)PTR_LocaleLower_003a8d4c)(filename);
  uVar2 = (*(type_3 *)PTR_AcquireExceptionInfo_003a8eec)();
  var_3 = (*(type_3 *)PTR_GetMimeInfo_003a9894)(filename,var_2 + 0x2158,1,uVar2);
  (*(type_3 *)PTR_DestroyExceptionInfo_003a8d50)(uVar2);
  if (var_3 == 0) {
    (*(type_3 *)PTR_FormatLocaleString_003a8d7c)
              (var_4,0x1000,var_1 + -0x2bc0,magick);
    (*(type_3 *)PTR_LocaleLower_003a8d4c)(var_4 + 8);
    pcVar4 = (char *)(*(type_3 *)PTR_ConstantString_003a90b4)(var_4);
  }
  else {
    uVar2 = (*(type_3 *)PTR_GetMimeType_003a8eb8)(var_3);
    pcVar4 = (char *)(*(type_3 *)PTR_ConstantString_003a90b4)(uVar2);
  }
  if (var_5 == *(int *)var_6) {
    return pcVar4;
  }
  var_6 = PTR___stack_chk_fail_003a9064;
  (*(type_3 *)PTR___stack_chk_fail_003a9064)();
  var_5 = *(int *)(var_6 + 0x29318c);
  if (*(int *)(var_5 + -0x4f30) != 0) {
    return (char *)0x1;
  }
  uVar2 = (**(type_3 **)(var_6 + 0x293eec))();
  *(type_1 *)(var_5 + -0x4f30) = uVar2;
  return (char *)0x1;
}


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

undefined4 MASKED(undefined4 param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined *puVar3;
  undefined1 auStack_201c [4096];
  undefined1 auStack_101c [8];
  undefined1 auStack_1014 [4088];
  int local_1c;
  
  puVar3 = PTR___stack_chk_guard_003a9230;
  local_1c = *(int *)PTR___stack_chk_guard_003a9230;
  (*(code *)PTR_FormatLocaleString_003a8d7c)
            (auStack_201c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc8,param_1);
  (*(code *)PTR_LocaleLower_003a8d4c)(auStack_201c);
  uVar1 = (*(code *)PTR_AcquireExceptionInfo_003a8eec)();
  iVar2 = (*(code *)PTR_GetMimeInfo_003a9894)(auStack_201c,PTR_UINT_003a8950 + 0x2158,1,uVar1);
  (*(code *)PTR_DestroyExceptionInfo_003a8d50)(uVar1);
  if (iVar2 == 0) {
    (*(code *)PTR_FormatLocaleString_003a8d7c)
              (auStack_101c,0x1000,PTR_s_t_to_left_003a88e4 + -0x2bc0,param_1);
    (*(code *)PTR_LocaleLower_003a8d4c)(auStack_1014);
    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(auStack_101c);
  }
  else {
    uVar1 = (*(code *)PTR_GetMimeType_003a8eb8)(iVar2);
    uVar1 = (*(code *)PTR_ConstantString_003a90b4)(uVar1);
  }
  if (local_1c == *(int *)puVar3) {
    return uVar1;
  }
  puVar3 = PTR___stack_chk_fail_003a9064;
  (*(code *)PTR___stack_chk_fail_003a9064)();
  iVar2 = *(int *)(puVar3 + 0x29318c);
  if (*(int *)(iVar2 + -0x4f30) != 0) {
    return 1;
  }
  uVar1 = (**(code **)(puVar3 + 0x293eec))();
  *(undefined4 *)(iVar2 + -0x4f30) = uVar1;
  return 1;
}

