
Elf_Internal_Shdr * find_section(Filedata *filedata,char *name)

{
  int iVar1;
  ulong uVar2;
  char *pcVar3;
  uint uVar4;
  
  if ((filedata->file_header).e_shnum == 0) {
    return (Elf_Internal_Shdr *)0x0;
  }
  uVar4 = 0;
  do {
    if (filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0) {
      pcVar3 = (char *)dcgettext(0,"<none>",5);
LAB_001193e8:
      iVar1 = strcmp(pcVar3,name);
    }
    else {
      if (filedata->string_table == (char *)0x0) {
        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);
        goto LAB_001193e8;
      }
      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;
      pcVar3 = filedata->string_table + uVar2;
      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;
      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);
      iVar1 = strcmp(pcVar3,name);
    }
    if (iVar1 == 0) {
      return filedata->section_headers + uVar4;
    }
    uVar4 = uVar4 + 1;
    if ((filedata->file_header).e_shnum <= uVar4) {
      return (Elf_Internal_Shdr *)0x0;
    }
  } while( true );
}



long FUN_001193c0(long param_1,char *param_2)

{
  int iVar1;
  uint *puVar2;
  ulong uVar3;
  char *pcVar4;
  uint uVar5;
  
  if (*(int *)(param_1 + 100) == 0) {
    return 0;
  }
  uVar5 = 0;
  do {
    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));
    if (puVar2 == (uint *)0x0) {
      pcVar4 = (char *)dcgettext(0,"<none>",5);
LAB_001193e8:
      iVar1 = strcmp(pcVar4,param_2);
    }
    else {
      if (*(long *)(param_1 + 0x80) == 0) {
        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);
        goto LAB_001193e8;
      }
      uVar3 = (ulong)*puVar2;
      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);
      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;
      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);
      iVar1 = strcmp(pcVar4,param_2);
    }
    if (iVar1 == 0) {
      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;
    }
    uVar5 = uVar5 + 1;
    if (*(uint *)(param_1 + 100) <= uVar5) {
      return 0;
    }
  } while( true );
}


MOV EAX,dword ptr [RDI + 0x64]
TEST EAX,EAX
JZ 0x001194ab
PUSH R14
XOR R14D,R14D
PUSH R13
LEA R13,[0x1648c9]
PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RDI
PUSH RBX
JMP 0x00119402
MOV RSI,R12
CALL 0x00107260
TEST EAX,EAX
JZ 0x0011944e
ADD R14D,0x1
CMP R14D,dword ptr [RBP + 0x64]
JNC 0x001194a0
MOV EAX,R14D
LEA RBX,[RAX + RAX*0x4]
SHL RBX,0x4
MOV RAX,RBX
ADD RAX,qword ptr [RBP + 0x70]
JZ 0x00119460
MOV RDI,qword ptr [RBP + 0x80]
TEST RDI,RDI
JZ 0x00119480
MOV EAX,dword ptr [RAX]
ADD RDI,RAX
CMP RAX,qword ptr [RBP + 0x88]
JC 0x001193e8
XOR EDI,EDI
MOV RSI,R13
MOV EDX,0x5
CALL 0x00107130
MOV RSI,R12
MOV RDI,RAX
CALL 0x00107260
TEST EAX,EAX
JNZ 0x001193f4
MOV RAX,qword ptr [RBP + 0x70]
ADD RAX,RBX
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x164e79]
CALL 0x00107130
MOV RDI,RAX
JMP 0x001193e8
MOV EDX,0x5
LEA RSI,[0x164e80]
CALL 0x00107130
MOV RDI,RAX
JMP 0x001193e8
POP RBX
XOR EAX,EAX
POP RBP
POP R12
POP R13
POP R14
RET
XOR EAX,EAX
RET
(translation_unit "long FUN_001193c0(long param_1,char *param_2)\n\n{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "long FUN_001193c0(long param_1,char *param_2)\n\n{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001193c0(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 100) == 0)" ( (binary_expression "*(int *)(param_1 + 100) == 0" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  }" { (expression_statement "puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));" (assignment_expression "puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" identifier = (cast_expression "(uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" ( (binary_expression "(ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70)" (binary_expression "(ulong)uVar5 * 0x50" (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) + (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )))) ;) (if_statement "if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" if (parenthesized_expression "(puVar2 == (uint *)0x0)" ( (binary_expression "puVar2 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<none>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<none>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<none>",5)" identifier (argument_list "(0,"<none>",5)" ( number_literal , (string_literal ""<none>"" " string_content ") , number_literal ))))) ;) (labeled_statement "LAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);" statement_identifier : (expression_statement "iVar1 = strcmp(pcVar4,param_2);" (assignment_expression "iVar1 = strcmp(pcVar4,param_2)" identifier = (call_expression "strcmp(pcVar4,param_2)" identifier (argument_list "(pcVar4,param_2)" ( identifier , identifier )))) ;)) }) (else_clause "else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" else (compound_statement "{\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" { (if_statement "if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" if (parenthesized_expression "(*(long *)(param_1 + 0x80) == 0)" ( (binary_expression "*(long *)(param_1 + 0x80) == 0" (pointer_expression "*(long *)(param_1 + 0x80)" * (cast_expression "(long *)(param_1 + 0x80)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<no-strings>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<no-strings>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<no-strings>",5)" identifier (argument_list "(0,"<no-strings>",5)" ( number_literal , (string_literal ""<no-strings>"" " string_content ") , number_literal ))))) ;) (goto_statement "goto LAB_001193e8;" goto statement_identifier ;) })) (expression_statement "uVar3 = (ulong)*puVar2;" (assignment_expression "uVar3 = (ulong)*puVar2" identifier = (binary_expression "(ulong)*puVar2" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;) (expression_statement "pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);" (assignment_expression "pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3)" identifier = (cast_expression "(char *)(*(long *)(param_1 + 0x80) + uVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x80) + uVar3)" ( (binary_expression "*(long *)(param_1 + 0x80) + uVar3" (pointer_expression "*(long *)(param_1 + 0x80)" * (cast_expression "(long *)(param_1 + 0x80)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) + identifier) )))) ;) (if_statement "if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;" if (parenthesized_expression "(uVar3 < *(ulong *)(param_1 + 0x88))" ( (binary_expression "uVar3 < *(ulong *)(param_1 + 0x88)" identifier < (pointer_expression "*(ulong *)(param_1 + 0x88)" * (cast_expression "(ulong *)(param_1 + 0x88)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (goto_statement "goto LAB_001193e8;" goto statement_identifier ;)) (expression_statement "pcVar4 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar1 = strcmp(pcVar4,param_2);" (assignment_expression "iVar1 = strcmp(pcVar4,param_2)" identifier = (call_expression "strcmp(pcVar4,param_2)" identifier (argument_list "(pcVar4,param_2)" ( identifier , identifier )))) ;) }))) (if_statement "if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }" { (return_statement "return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;" return (binary_expression "*(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) + (binary_expression "(ulong)uVar5 * 0x50" (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (if_statement "if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 100) <= uVar5)" ( (binary_expression "*(uint *)(param_1 + 100) <= uVar5" (pointer_expression "*(uint *)(param_1 + 100)" * (cast_expression "(uint *)(param_1 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "Elf_Internal_Shdr * find_section(Filedata *filedata,char *name)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  uint uVar4;\n  \n  if ((filedata->file_header).e_shnum == 0) {\n    return (Elf_Internal_Shdr *)0x0;\n  }\n  uVar4 = 0;\n  do {\n    if (filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0) {\n      pcVar3 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);\n    }\n    else {\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }\n    if (iVar1 == 0) {\n      return filedata->section_headers + uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    if ((filedata->file_header).e_shnum <= uVar4) {\n      return (Elf_Internal_Shdr *)0x0;\n    }\n  } while( true );\n}\n\n" (function_definition "Elf_Internal_Shdr * find_section(Filedata *filedata,char *name)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  uint uVar4;\n  \n  if ((filedata->file_header).e_shnum == 0) {\n    return (Elf_Internal_Shdr *)0x0;\n  }\n  uVar4 = 0;\n  do {\n    if (filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0) {\n      pcVar3 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);\n    }\n    else {\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }\n    if (iVar1 == 0) {\n      return filedata->section_headers + uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    if ((filedata->file_header).e_shnum <= uVar4) {\n      return (Elf_Internal_Shdr *)0x0;\n    }\n  } while( true );\n}" type_identifier (pointer_declarator "* find_section(Filedata *filedata,char *name)" * (function_declarator "find_section(Filedata *filedata,char *name)" identifier (parameter_list "(Filedata *filedata,char *name)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  uint uVar4;\n  \n  if ((filedata->file_header).e_shnum == 0) {\n    return (Elf_Internal_Shdr *)0x0;\n  }\n  uVar4 = 0;\n  do {\n    if (filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0) {\n      pcVar3 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);\n    }\n    else {\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }\n    if (iVar1 == 0) {\n      return filedata->section_headers + uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    if ((filedata->file_header).e_shnum <= uVar4) {\n      return (Elf_Internal_Shdr *)0x0;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if ((filedata->file_header).e_shnum == 0) {\n    return (Elf_Internal_Shdr *)0x0;\n  }" if (parenthesized_expression "((filedata->file_header).e_shnum == 0)" ( (binary_expression "(filedata->file_header).e_shnum == 0" (field_expression "(filedata->file_header).e_shnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier) == number_literal) )) (compound_statement "{\n    return (Elf_Internal_Shdr *)0x0;\n  }" { (return_statement "return (Elf_Internal_Shdr *)0x0;" return (cast_expression "(Elf_Internal_Shdr *)0x0" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0) {\n      pcVar3 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);\n    }\n    else {\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }\n    if (iVar1 == 0) {\n      return filedata->section_headers + uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    if ((filedata->file_header).e_shnum <= uVar4) {\n      return (Elf_Internal_Shdr *)0x0;\n    }\n  } while( true );" do (compound_statement "{\n    if (filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0) {\n      pcVar3 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);\n    }\n    else {\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }\n    if (iVar1 == 0) {\n      return filedata->section_headers + uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    if ((filedata->file_header).e_shnum <= uVar4) {\n      return (Elf_Internal_Shdr *)0x0;\n    }\n  }" { (if_statement "if (filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0) {\n      pcVar3 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);\n    }\n    else {\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }" if (parenthesized_expression "(filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0)" ( (binary_expression "filedata->section_headers + uVar4 == (Elf_Internal_Shdr *)0x0" (binary_expression "filedata->section_headers + uVar4" (field_expression "filedata->section_headers" identifier -> field_identifier) + identifier) == (cast_expression "(Elf_Internal_Shdr *)0x0" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);\n    }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"<none>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<none>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<none>",5)" identifier (argument_list "(0,"<none>",5)" ( number_literal , (string_literal ""<none>"" " string_content ") , number_literal ))))) ;) (labeled_statement "LAB_001193e8:\n      iVar1 = strcmp(pcVar3,name);" statement_identifier : (expression_statement "iVar1 = strcmp(pcVar3,name);" (assignment_expression "iVar1 = strcmp(pcVar3,name)" identifier = (call_expression "strcmp(pcVar3,name)" identifier (argument_list "(pcVar3,name)" ( identifier , identifier )))) ;)) }) (else_clause "else {\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }" else (compound_statement "{\n      if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;\n      pcVar3 = filedata->string_table + uVar2;\n      if (uVar2 < filedata->string_table_length) goto LAB_001193e8;\n      pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar3,name);\n    }" { (if_statement "if (filedata->string_table == (char *)0x0) {\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" if (parenthesized_expression "(filedata->string_table == (char *)0x0)" ( (binary_expression "filedata->string_table == (char *)0x0" (field_expression "filedata->string_table" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar3 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"<no-strings>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<no-strings>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<no-strings>",5)" identifier (argument_list "(0,"<no-strings>",5)" ( number_literal , (string_literal ""<no-strings>"" " string_content ") , number_literal ))))) ;) (goto_statement "goto LAB_001193e8;" goto statement_identifier ;) })) (expression_statement "uVar2 = (ulong)filedata->section_headers[uVar4].sh_name;" (assignment_expression "uVar2 = (ulong)filedata->section_headers[uVar4].sh_name" identifier = (cast_expression "(ulong)filedata->section_headers[uVar4].sh_name" ( (type_descriptor "ulong" type_identifier) ) (field_expression "filedata->section_headers[uVar4].sh_name" (subscript_expression "filedata->section_headers[uVar4]" (field_expression "filedata->section_headers" identifier -> field_identifier) [ identifier ]) . field_identifier))) ;) (expression_statement "pcVar3 = filedata->string_table + uVar2;" (assignment_expression "pcVar3 = filedata->string_table + uVar2" identifier = (binary_expression "filedata->string_table + uVar2" (field_expression "filedata->string_table" identifier -> field_identifier) + identifier)) ;) (if_statement "if (uVar2 < filedata->string_table_length) goto LAB_001193e8;" if (parenthesized_expression "(uVar2 < filedata->string_table_length)" ( (binary_expression "uVar2 < filedata->string_table_length" identifier < (field_expression "filedata->string_table_length" identifier -> field_identifier)) )) (goto_statement "goto LAB_001193e8;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar1 = strcmp(pcVar3,name);" (assignment_expression "iVar1 = strcmp(pcVar3,name)" identifier = (call_expression "strcmp(pcVar3,name)" identifier (argument_list "(pcVar3,name)" ( identifier , identifier )))) ;) }))) (if_statement "if (iVar1 == 0) {\n      return filedata->section_headers + uVar4;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return filedata->section_headers + uVar4;\n    }" { (return_statement "return filedata->section_headers + uVar4;" return (binary_expression "filedata->section_headers + uVar4" (field_expression "filedata->section_headers" identifier -> field_identifier) + identifier) ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if ((filedata->file_header).e_shnum <= uVar4) {\n      return (Elf_Internal_Shdr *)0x0;\n    }" if (parenthesized_expression "((filedata->file_header).e_shnum <= uVar4)" ( (binary_expression "(filedata->file_header).e_shnum <= uVar4" (field_expression "(filedata->file_header).e_shnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (compound_statement "{\n      return (Elf_Internal_Shdr *)0x0;\n    }" { (return_statement "return (Elf_Internal_Shdr *)0x0;" return (cast_expression "(Elf_Internal_Shdr *)0x0" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "long FUN_001193c0(long param_1,char *param_2)\n\n{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "long FUN_001193c0(long param_1,char *param_2)\n\n{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001193c0(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 100) == 0)" ( (binary_expression "*(int *)(param_1 + 100) == 0" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  }" { (expression_statement "puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));" (assignment_expression "puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" identifier = (cast_expression "(uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" ( (binary_expression "(ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70)" (binary_expression "(ulong)uVar5 * 0x50" (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) + (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )))) ;) (if_statement "if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" if (parenthesized_expression "(puVar2 == (uint *)0x0)" ( (binary_expression "puVar2 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<none>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<none>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<none>",5)" identifier (argument_list "(0,"<none>",5)" ( number_literal , (string_literal ""<none>"" " string_content ") , number_literal ))))) ;) (labeled_statement "LAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);" statement_identifier : (expression_statement "iVar1 = strcmp(pcVar4,param_2);" (assignment_expression "iVar1 = strcmp(pcVar4,param_2)" identifier = (call_expression "strcmp(pcVar4,param_2)" identifier (argument_list "(pcVar4,param_2)" ( identifier , identifier )))) ;)) }) (else_clause "else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" else (compound_statement "{\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" { (if_statement "if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" if (parenthesized_expression "(*(long *)(param_1 + 0x80) == 0)" ( (binary_expression "*(long *)(param_1 + 0x80) == 0" (pointer_expression "*(long *)(param_1 + 0x80)" * (cast_expression "(long *)(param_1 + 0x80)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<no-strings>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<no-strings>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<no-strings>",5)" identifier (argument_list "(0,"<no-strings>",5)" ( number_literal , (string_literal ""<no-strings>"" " string_content ") , number_literal ))))) ;) (goto_statement "goto LAB_001193e8;" goto statement_identifier ;) })) (expression_statement "uVar3 = (ulong)*puVar2;" (assignment_expression "uVar3 = (ulong)*puVar2" identifier = (binary_expression "(ulong)*puVar2" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;) (expression_statement "pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);" (assignment_expression "pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3)" identifier = (cast_expression "(char *)(*(long *)(param_1 + 0x80) + uVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x80) + uVar3)" ( (binary_expression "*(long *)(param_1 + 0x80) + uVar3" (pointer_expression "*(long *)(param_1 + 0x80)" * (cast_expression "(long *)(param_1 + 0x80)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) + identifier) )))) ;) (if_statement "if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;" if (parenthesized_expression "(uVar3 < *(ulong *)(param_1 + 0x88))" ( (binary_expression "uVar3 < *(ulong *)(param_1 + 0x88)" identifier < (pointer_expression "*(ulong *)(param_1 + 0x88)" * (cast_expression "(ulong *)(param_1 + 0x88)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (goto_statement "goto LAB_001193e8;" goto statement_identifier ;)) (expression_statement "pcVar4 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar1 = strcmp(pcVar4,param_2);" (assignment_expression "iVar1 = strcmp(pcVar4,param_2)" identifier = (call_expression "strcmp(pcVar4,param_2)" identifier (argument_list "(pcVar4,param_2)" ( identifier , identifier )))) ;) }))) (if_statement "if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }" { (return_statement "return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;" return (binary_expression "*(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) + (binary_expression "(ulong)uVar5 * 0x50" (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (if_statement "if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 100) <= uVar5)" ( (binary_expression "*(uint *)(param_1 + 100) <= uVar5" (pointer_expression "*(uint *)(param_1 + 100)" * (cast_expression "(uint *)(param_1 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (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) )))) <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "long FUN_001193c0(long param_1,char *param_2)\n\n{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_001193c0(long param_1,char *param_2)" (identifier "FUN_001193c0") (parameter_list "(long param_1,char *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  ulong uVar3;\n  char *pcVar4;\n  uint uVar5;\n  \n  if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (if_statement "if (*(int *)(param_1 + 100) == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 100) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 100) == 0" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));\n    if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }\n    uVar5 = uVar5 + 1;\n    if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));" (assignment_expression "puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" (identifier "puVar2") (= "=") (cast_expression "(uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70))" (( "(") (binary_expression "(ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70)" (binary_expression "(ulong)uVar5 * 0x50" (cast_expression "(ulong)uVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar5")) (* "*") (number_literal "0x50")) (+ "+") (pointer_expression "*(long *)(param_1 + 0x70)" (* "*") (cast_expression "(long *)(param_1 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) () ")")))) (; ";")) (if_statement "if (puVar2 == (uint *)0x0) {\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }\n    else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" (if "if") (parenthesized_expression "(puVar2 == (uint *)0x0)" (( "(") (binary_expression "puVar2 == (uint *)0x0" (identifier "puVar2") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pcVar4 = (char *)dcgettext(0,"<none>",5);\nLAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);\n    }" ({ "{") (expression_statement "pcVar4 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<none>",5)" (identifier "pcVar4") (= "=") (cast_expression "(char *)dcgettext(0,"<none>",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"<none>",5)" (identifier "dcgettext") (argument_list "(0,"<none>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<none>"" (" """) (string_content "<none>") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (labeled_statement "LAB_001193e8:\n      iVar1 = strcmp(pcVar4,param_2);" (statement_identifier "LAB_001193e8") (: ":") (expression_statement "iVar1 = strcmp(pcVar4,param_2);" (assignment_expression "iVar1 = strcmp(pcVar4,param_2)" (identifier "iVar1") (= "=") (call_expression "strcmp(pcVar4,param_2)" (identifier "strcmp") (argument_list "(pcVar4,param_2)" (( "(") (identifier "pcVar4") (, ",") (identifier "param_2") () ")")))) (; ";"))) (} "}")) (else_clause "else {\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" (else "else") (compound_statement "{\n      if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }\n      uVar3 = (ulong)*puVar2;\n      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);\n      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;\n      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);\n      iVar1 = strcmp(pcVar4,param_2);\n    }" ({ "{") (if_statement "if (*(long *)(param_1 + 0x80) == 0) {\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x80) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x80) == 0" (pointer_expression "*(long *)(param_1 + 0x80)" (* "*") (cast_expression "(long *)(param_1 + 0x80)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);\n        goto LAB_001193e8;\n      }" ({ "{") (expression_statement "pcVar4 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<no-strings>",5)" (identifier "pcVar4") (= "=") (cast_expression "(char *)dcgettext(0,"<no-strings>",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"<no-strings>",5)" (identifier "dcgettext") (argument_list "(0,"<no-strings>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<no-strings>"" (" """) (string_content "<no-strings>") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (goto_statement "goto LAB_001193e8;" (goto "goto") (statement_identifier "LAB_001193e8") (; ";")) (} "}"))) (expression_statement "uVar3 = (ulong)*puVar2;" (assignment_expression "uVar3 = (ulong)*puVar2" (identifier "uVar3") (= "=") (binary_expression "(ulong)*puVar2" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);" (assignment_expression "pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3)" (identifier "pcVar4") (= "=") (cast_expression "(char *)(*(long *)(param_1 + 0x80) + uVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x80) + uVar3)" (( "(") (binary_expression "*(long *)(param_1 + 0x80) + uVar3" (pointer_expression "*(long *)(param_1 + 0x80)" (* "*") (cast_expression "(long *)(param_1 + 0x80)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (+ "+") (identifier "uVar3")) () ")")))) (; ";")) (if_statement "if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;" (if "if") (parenthesized_expression "(uVar3 < *(ulong *)(param_1 + 0x88))" (( "(") (binary_expression "uVar3 < *(ulong *)(param_1 + 0x88)" (identifier "uVar3") (< "<") (pointer_expression "*(ulong *)(param_1 + 0x88)" (* "*") (cast_expression "(ulong *)(param_1 + 0x88)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x88)" (( "(") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")"))))) () ")")) (goto_statement "goto LAB_001193e8;" (goto "goto") (statement_identifier "LAB_001193e8") (; ";"))) (expression_statement "pcVar4 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"<corrupt>",5)" (identifier "pcVar4") (= "=") (cast_expression "(char *)dcgettext(0,"<corrupt>",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"<corrupt>",5)" (identifier "dcgettext") (argument_list "(0,"<corrupt>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<corrupt>"" (" """) (string_content "<corrupt>") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "iVar1 = strcmp(pcVar4,param_2);" (assignment_expression "iVar1 = strcmp(pcVar4,param_2)" (identifier "iVar1") (= "=") (call_expression "strcmp(pcVar4,param_2)" (identifier "strcmp") (argument_list "(pcVar4,param_2)" (( "(") (identifier "pcVar4") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 == 0) {\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;\n    }" ({ "{") (return_statement "return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;" (return "return") (binary_expression "*(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50" (pointer_expression "*(long *)(param_1 + 0x70)" (* "*") (cast_expression "(long *)(param_1 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (+ "+") (binary_expression "(ulong)uVar5 * 0x50" (cast_expression "(ulong)uVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar5")) (* "*") (number_literal "0x50"))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 100) <= uVar5) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 100) <= uVar5)" (( "(") (binary_expression "*(uint *)(param_1 + 100) <= uVar5" (pointer_expression "*(uint *)(param_1 + 100)" (* "*") (cast_expression "(uint *)(param_1 + 100)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (<= "<=") (identifier "uVar5")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

type_1 * function_1(type_2 *filedata,char *name)

{
  int var_5;
  type_3 var_4;
  char *pcVar3;
  type_4 var_1;
  
  if ((filedata->file_header).e_shnum == 0) {
    return (type_1 *)0x0;
  }
  var_1 = 0;
  do {
    if (filedata->section_headers + var_1 == (type_1 *)0x0) {
      pcVar3 = (char *)var_2(0,"<none>",5);
LAB_001193e8:
      var_5 = var_3(pcVar3,name);
    }
    else {
      if (filedata->string_table == (char *)0x0) {
        pcVar3 = (char *)var_2(0,"<no-strings>",5);
        goto LAB_001193e8;
      }
      var_4 = (type_3)filedata->section_headers[var_1].sh_name;
      pcVar3 = filedata->string_table + var_4;
      if (var_4 < filedata->string_table_length) goto LAB_001193e8;
      pcVar3 = (char *)var_2(0,"<corrupt>",5);
      var_5 = var_3(pcVar3,name);
    }
    if (var_5 == 0) {
      return filedata->section_headers + var_1;
    }
    var_1 = var_1 + 1;
    if ((filedata->file_header).e_shnum <= var_1) {
      return (type_1 *)0x0;
    }
  } while( true );
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement (number_literal))))) condition: (parenthesized_expression (true))))))

long MASKED(long param_1,char *param_2)

{
  int iVar1;
  uint *puVar2;
  ulong uVar3;
  char *pcVar4;
  uint uVar5;
  
  if (*(int *)(param_1 + 100) == 0) {
    return 0;
  }
  uVar5 = 0;
  do {
    puVar2 = (uint *)((ulong)uVar5 * 0x50 + *(long *)(param_1 + 0x70));
    if (puVar2 == (uint *)0x0) {
      pcVar4 = (char *)dcgettext(0,"<none>",5);
LAB_001193e8:
      iVar1 = strcmp(pcVar4,param_2);
    }
    else {
      if (*(long *)(param_1 + 0x80) == 0) {
        pcVar4 = (char *)dcgettext(0,"<no-strings>",5);
        goto LAB_001193e8;
      }
      uVar3 = (ulong)*puVar2;
      pcVar4 = (char *)(*(long *)(param_1 + 0x80) + uVar3);
      if (uVar3 < *(ulong *)(param_1 + 0x88)) goto LAB_001193e8;
      pcVar4 = (char *)dcgettext(0,"<corrupt>",5);
      iVar1 = strcmp(pcVar4,param_2);
    }
    if (iVar1 == 0) {
      return *(long *)(param_1 + 0x70) + (ulong)uVar5 * 0x50;
    }
    uVar5 = uVar5 + 1;
    if (*(uint *)(param_1 + 100) <= uVar5) {
      return 0;
    }
  } while( true );
}

