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

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

{
  uint uVar1;
  int iVar2;
  char *__s1;
  uint uVar3;
  
  if ((filedata->file_header).e_shnum != 0) {
    uVar3 = 0;
    do {
      if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {
        __s1 = (char *)dcgettext(0,"<none>",5);
      }
      else if (filedata->string_table == (char *)0x0) {
        __s1 = (char *)dcgettext(0,"<no-strings>",5);
      }
      else {
        uVar1 = filedata->section_headers[uVar3].sh_name;
        __s1 = filedata->string_table + uVar1;
        if (filedata->string_table_length <= uVar1) {
          __s1 = (char *)dcgettext(0,"<corrupt>",5);
        }
      }
      iVar2 = strcmp(__s1,name);
      if (iVar2 == 0) {
        return filedata->section_headers + uVar3;
      }
      uVar3 = uVar3 + 1;
    } while (uVar3 < (filedata->file_header).e_shnum);
  }
  return (Elf_Internal_Shdr *)0x0;
}



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

int __regparm3 FUN_00026450(int param_1,char *param_2)

{
  uint uVar1;
  int iVar2;
  char *__s1;
  uint *puVar3;
  uint uVar4;
  
  if (*(int *)(param_1 + 0x54) != 0) {
    uVar4 = 0;
    do {
      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));
      if (puVar3 == (uint *)0x0) {
        __s1 = (char *)dcgettext(0,"<none>",5);
      }
      else if (*(int *)(param_1 + 100) == 0) {
        __s1 = (char *)dcgettext(0,"<no-strings>",5);
      }
      else {
        uVar1 = *puVar3;
        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);
        if (*(uint *)(param_1 + 0x68) <= uVar1) {
          __s1 = (char *)dcgettext(0,"<corrupt>",5);
        }
      }
      iVar2 = strcmp(__s1,param_2);
      if (iVar2 == 0) {
        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;
      }
      uVar4 = uVar4 + 1;
    } while (uVar4 < *(uint *)(param_1 + 0x54));
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x8dba7
SUB ESP,0x1c
MOV ECX,dword ptr [EAX + 0x54]
TEST ECX,ECX
JZ 0x00026520
MOV EDI,EAX
LEA EAX,[EBX + 0xfffc2aee]
MOV dword ptr [ESP + 0x4],EDX
XOR EBP,EBP
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[EBX + 0xfffc3164]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x000264b0
SUB ESP,0x8
PUSH dword ptr [ESP + 0xc]
PUSH EAX
CALL 0x00013050
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00026530
ADD EBP,0x1
CMP EBP,dword ptr [EDI + 0x54]
JNC 0x00026520
LEA ESI,[EBP + EBP*0x8]
SHL ESI,0x3
MOV ECX,ESI
ADD ECX,dword ptr [EDI + 0x5c]
JZ 0x000264e8
MOV EAX,dword ptr [EDI + 0x64]
TEST EAX,EAX
JZ 0x00026500
MOV ECX,dword ptr [ECX]
ADD EAX,ECX
CMP ECX,dword ptr [EDI + 0x68]
JC 0x00026490
SUB ESP,0x4
PUSH 0x5
PUSH dword ptr [ESP + 0x10]
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x10
JMP 0x00026490
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc315d]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x10
JMP 0x00026490
SUB ESP,0x4
PUSH 0x5
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x10
JMP 0x00026490
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EDI + 0x5c]
ADD ESP,0x1c
POP EBX
ADD EAX,ESI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00026450(int param_1,char *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 FUN_00026450(int param_1,char *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00026450(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" ( (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));" do (compound_statement "{\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    }" { (expression_statement "puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));" (assignment_expression "puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" identifier = (cast_expression "(uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" ( (binary_expression "uVar4 * 0x48 + *(int *)(param_1 + 0x5c)" (binary_expression "uVar4 * 0x48" identifier * number_literal) + (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) )))) ;) (if_statement "if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" if (parenthesized_expression "(puVar3 == (uint *)0x0)" ( (binary_expression "puVar3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }" { (expression_statement "__s1 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "__s1 = (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 ))))) ;) }) (else_clause "else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" else (if_statement "if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\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        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }" { (expression_statement "__s1 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "__s1 = (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 ))))) ;) }) (else_clause "else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" else (compound_statement "{\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" { (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "__s1 = (char *)(*(int *)(param_1 + 100) + uVar1);" (assignment_expression "__s1 = (char *)(*(int *)(param_1 + 100) + uVar1)" identifier = (cast_expression "(char *)(*(int *)(param_1 + 100) + uVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 100) + uVar1)" ( (binary_expression "*(int *)(param_1 + 100) + uVar1" (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) )))) + identifier) )))) ;) (if_statement "if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" if (parenthesized_expression "(*(uint *)(param_1 + 0x68) <= uVar1)" ( (binary_expression "*(uint *)(param_1 + 0x68) <= uVar1" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" { (expression_statement "__s1 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "__s1 = (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 "iVar2 = strcmp(__s1,param_2);" (assignment_expression "iVar2 = strcmp(__s1,param_2)" identifier = (call_expression "strcmp(__s1,param_2)" identifier (argument_list "(__s1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }" { (return_statement "return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;" return (binary_expression "*(int *)(param_1 + 0x5c) + uVar4 * 0x48" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + (binary_expression "uVar4 * 0x48" identifier * number_literal)) ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x54))" ( (binary_expression "uVar4 < *(uint *)(param_1 + 0x54)" identifier < (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nElf_Internal_Shdr * __regparm3 find_section(Filedata *filedata,char *name)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint uVar3;\n  \n  if ((filedata->file_header).e_shnum != 0) {\n    uVar3 = 0;\n    do {\n      if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,name);\n      if (iVar2 == 0) {\n        return filedata->section_headers + uVar3;\n      }\n      uVar3 = uVar3 + 1;\n    } while (uVar3 < (filedata->file_header).e_shnum);\n  }\n  return (Elf_Internal_Shdr *)0x0;\n}\n\n" comment (ERROR "Elf_Internal_Shdr * __regparm3 find_section(Filedata *filedata,char *name)" (binary_expression "Elf_Internal_Shdr * __regparm3 find_section(Filedata *filedata,char *name)" identifier * (ERROR "__regparm3" identifier) (call_expression "find_section(Filedata *filedata,char *name)" identifier (argument_list "(Filedata *filedata,char *name)" ( (binary_expression "Filedata *filedata" identifier * identifier) , (binary_expression "char *name" identifier * identifier) ))))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint uVar3;\n  \n  if ((filedata->file_header).e_shnum != 0) {\n    uVar3 = 0;\n    do {\n      if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,name);\n      if (iVar2 == 0) {\n        return filedata->section_headers + uVar3;\n      }\n      uVar3 = uVar3 + 1;\n    } while (uVar3 < (filedata->file_header).e_shnum);\n  }\n  return (Elf_Internal_Shdr *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((filedata->file_header).e_shnum != 0) {\n    uVar3 = 0;\n    do {\n      if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,name);\n      if (iVar2 == 0) {\n        return filedata->section_headers + uVar3;\n      }\n      uVar3 = uVar3 + 1;\n    } while (uVar3 < (filedata->file_header).e_shnum);\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    uVar3 = 0;\n    do {\n      if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,name);\n      if (iVar2 == 0) {\n        return filedata->section_headers + uVar3;\n      }\n      uVar3 = uVar3 + 1;\n    } while (uVar3 < (filedata->file_header).e_shnum);\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,name);\n      if (iVar2 == 0) {\n        return filedata->section_headers + uVar3;\n      }\n      uVar3 = uVar3 + 1;\n    } while (uVar3 < (filedata->file_header).e_shnum);" do (compound_statement "{\n      if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,name);\n      if (iVar2 == 0) {\n        return filedata->section_headers + uVar3;\n      }\n      uVar3 = uVar3 + 1;\n    }" { (if_statement "if (filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" if (parenthesized_expression "(filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0)" ( (binary_expression "filedata->section_headers + uVar3 == (Elf_Internal_Shdr *)0x0" (binary_expression "filedata->section_headers + uVar3" (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        __s1 = (char *)dcgettext(0,"<none>",5);\n      }" { (expression_statement "__s1 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "__s1 = (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 ))))) ;) }) (else_clause "else if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" else (if_statement "if (filedata->string_table == (char *)0x0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\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        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }" { (expression_statement "__s1 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "__s1 = (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 ))))) ;) }) (else_clause "else {\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" else (compound_statement "{\n        uVar1 = filedata->section_headers[uVar3].sh_name;\n        __s1 = filedata->string_table + uVar1;\n        if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" { (expression_statement "uVar1 = filedata->section_headers[uVar3].sh_name;" (assignment_expression "uVar1 = filedata->section_headers[uVar3].sh_name" identifier = (field_expression "filedata->section_headers[uVar3].sh_name" (subscript_expression "filedata->section_headers[uVar3]" (field_expression "filedata->section_headers" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "__s1 = filedata->string_table + uVar1;" (assignment_expression "__s1 = filedata->string_table + uVar1" identifier = (binary_expression "filedata->string_table + uVar1" (field_expression "filedata->string_table" identifier -> field_identifier) + identifier)) ;) (if_statement "if (filedata->string_table_length <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" if (parenthesized_expression "(filedata->string_table_length <= uVar1)" ( (binary_expression "filedata->string_table_length <= uVar1" (field_expression "filedata->string_table_length" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" { (expression_statement "__s1 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "__s1 = (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 "iVar2 = strcmp(__s1,name);" (assignment_expression "iVar2 = strcmp(__s1,name)" identifier = (call_expression "strcmp(__s1,name)" identifier (argument_list "(__s1,name)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return filedata->section_headers + uVar3;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return filedata->section_headers + uVar3;\n      }" { (return_statement "return filedata->section_headers + uVar3;" return (binary_expression "filedata->section_headers + uVar3" (field_expression "filedata->section_headers" identifier -> field_identifier) + identifier) ;) })) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < (filedata->file_header).e_shnum)" ( (binary_expression "uVar3 < (filedata->file_header).e_shnum" identifier < (field_expression "(filedata->file_header).e_shnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) )) ;) })) (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) ;) }))
(translation_unit "int __regparm3 FUN_00026450(int param_1,char *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_00026450(int param_1,char *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00026450(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" ( (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));" do (compound_statement "{\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    }" { (expression_statement "puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));" (assignment_expression "puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" identifier = (cast_expression "(uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" ( (binary_expression "uVar4 * 0x48 + *(int *)(param_1 + 0x5c)" (binary_expression "uVar4 * 0x48" identifier * number_literal) + (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) )))) ;) (if_statement "if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" if (parenthesized_expression "(puVar3 == (uint *)0x0)" ( (binary_expression "puVar3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }" { (expression_statement "__s1 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "__s1 = (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 ))))) ;) }) (else_clause "else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" else (if_statement "if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\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        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }" { (expression_statement "__s1 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "__s1 = (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 ))))) ;) }) (else_clause "else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" else (compound_statement "{\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" { (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "__s1 = (char *)(*(int *)(param_1 + 100) + uVar1);" (assignment_expression "__s1 = (char *)(*(int *)(param_1 + 100) + uVar1)" identifier = (cast_expression "(char *)(*(int *)(param_1 + 100) + uVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 100) + uVar1)" ( (binary_expression "*(int *)(param_1 + 100) + uVar1" (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) )))) + identifier) )))) ;) (if_statement "if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" if (parenthesized_expression "(*(uint *)(param_1 + 0x68) <= uVar1)" ( (binary_expression "*(uint *)(param_1 + 0x68) <= uVar1" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" { (expression_statement "__s1 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "__s1 = (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 "iVar2 = strcmp(__s1,param_2);" (assignment_expression "iVar2 = strcmp(__s1,param_2)" identifier = (call_expression "strcmp(__s1,param_2)" identifier (argument_list "(__s1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }" { (return_statement "return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;" return (binary_expression "*(int *)(param_1 + 0x5c) + uVar4 * 0x48" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + (binary_expression "uVar4 * 0x48" identifier * number_literal)) ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x54))" ( (binary_expression "uVar4 < *(uint *)(param_1 + 0x54)" identifier < (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 { (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 IDENT * LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ))))) ;) }) (else_clause else (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 { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) ;) (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 { (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_00026450(int param_1,char *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00026450(int param_1,char *param_2)" (identifier "FUN_00026450") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *__s1;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = 0;\n    do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)(param_1 + 0x54));" (do "do") (compound_statement "{\n      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));\n      if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }\n      iVar2 = strcmp(__s1,param_2);\n      if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }\n      uVar4 = uVar4 + 1;\n    }" ({ "{") (expression_statement "puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));" (assignment_expression "puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" (identifier "puVar3") (= "=") (cast_expression "(uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 * 0x48 + *(int *)(param_1 + 0x5c))" (( "(") (binary_expression "uVar4 * 0x48 + *(int *)(param_1 + 0x5c)" (binary_expression "uVar4 * 0x48" (identifier "uVar4") (* "*") (number_literal "0x48")) (+ "+") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) () ")")))) (; ";")) (if_statement "if (puVar3 == (uint *)0x0) {\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }\n      else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" (if "if") (parenthesized_expression "(puVar3 == (uint *)0x0)" (( "(") (binary_expression "puVar3 == (uint *)0x0" (identifier "puVar3") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        __s1 = (char *)dcgettext(0,"<none>",5);\n      }" ({ "{") (expression_statement "__s1 = (char *)dcgettext(0,"<none>",5);" (assignment_expression "__s1 = (char *)dcgettext(0,"<none>",5)" (identifier "__s1") (= "=") (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") () ")"))))) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" (else "else") (if_statement "if (*(int *)(param_1 + 100) == 0) {\n        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }\n      else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\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        __s1 = (char *)dcgettext(0,"<no-strings>",5);\n      }" ({ "{") (expression_statement "__s1 = (char *)dcgettext(0,"<no-strings>",5);" (assignment_expression "__s1 = (char *)dcgettext(0,"<no-strings>",5)" (identifier "__s1") (= "=") (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") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" (else "else") (compound_statement "{\n        uVar1 = *puVar3;\n        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);\n        if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }\n      }" ({ "{") (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" (identifier "uVar1") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "__s1 = (char *)(*(int *)(param_1 + 100) + uVar1);" (assignment_expression "__s1 = (char *)(*(int *)(param_1 + 100) + uVar1)" (identifier "__s1") (= "=") (cast_expression "(char *)(*(int *)(param_1 + 100) + uVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 100) + uVar1)" (( "(") (binary_expression "*(int *)(param_1 + 100) + uVar1" (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")) () ")")))) (+ "+") (identifier "uVar1")) () ")")))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x68) <= uVar1) {\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x68) <= uVar1)" (( "(") (binary_expression "*(uint *)(param_1 + 0x68) <= uVar1" (pointer_expression "*(uint *)(param_1 + 0x68)" (* "*") (cast_expression "(uint *)(param_1 + 0x68)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n          __s1 = (char *)dcgettext(0,"<corrupt>",5);\n        }" ({ "{") (expression_statement "__s1 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "__s1 = (char *)dcgettext(0,"<corrupt>",5)" (identifier "__s1") (= "=") (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 "iVar2 = strcmp(__s1,param_2);" (assignment_expression "iVar2 = strcmp(__s1,param_2)" (identifier "iVar2") (= "=") (call_expression "strcmp(__s1,param_2)" (identifier "strcmp") (argument_list "(__s1,param_2)" (( "(") (identifier "__s1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;\n      }" ({ "{") (return_statement "return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;" (return "return") (binary_expression "*(int *)(param_1 + 0x5c) + uVar4 * 0x48" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (+ "+") (binary_expression "uVar4 * 0x48" (identifier "uVar4") (* "*") (number_literal "0x48"))) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x54))" (( "(") (binary_expression "uVar4 < *(uint *)(param_1 + 0x54)" (identifier "uVar4") (< "<") (pointer_expression "*(uint *)(param_1 + 0x54)" (* "*") (cast_expression "(uint *)(param_1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")"))))) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_2 * __regparm3 find_section(Filedata *filedata,char *name)

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


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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 (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: (identifier) right: (number_literal)) 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: (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))))))) alternative: (else_clause (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 (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))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (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 (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (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)))))))))) (return_statement (number_literal)))))

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

int __regparm3 MASKED(int param_1,char *param_2)

{
  uint uVar1;
  int iVar2;
  char *__s1;
  uint *puVar3;
  uint uVar4;
  
  if (*(int *)(param_1 + 0x54) != 0) {
    uVar4 = 0;
    do {
      puVar3 = (uint *)(uVar4 * 0x48 + *(int *)(param_1 + 0x5c));
      if (puVar3 == (uint *)0x0) {
        __s1 = (char *)dcgettext(0,"<none>",5);
      }
      else if (*(int *)(param_1 + 100) == 0) {
        __s1 = (char *)dcgettext(0,"<no-strings>",5);
      }
      else {
        uVar1 = *puVar3;
        __s1 = (char *)(*(int *)(param_1 + 100) + uVar1);
        if (*(uint *)(param_1 + 0x68) <= uVar1) {
          __s1 = (char *)dcgettext(0,"<corrupt>",5);
        }
      }
      iVar2 = strcmp(__s1,param_2);
      if (iVar2 == 0) {
        return *(int *)(param_1 + 0x5c) + uVar4 * 0x48;
      }
      uVar4 = uVar4 + 1;
    } while (uVar4 < *(uint *)(param_1 + 0x54));
  }
  return 0;
}

