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

void __regparm3 set_pep_name(char *name,bfd_vma val)

{
  int *piVar1;
  int iVar2;
  undefined4 in_ECX;
  undefined4 in_EDX;
  char *__s2;
  char **ppcVar3;
  int iVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  byte bVar8;
  
  bVar8 = 0;
  do {
    is_underscoring();
    if (init[0].ptr == (void *)0x0) {
LAB_0005432a:
                    /* WARNING: Subroutine does not return */
      ld_abort("ei386pep.c",0x1b0,"set_pep_name");
    }
    iVar4 = 0;
    ppcVar3 = &init[0].symbol;
    while( true ) {
      __s2 = *ppcVar3;
      if (ppcVar3[2] != (char *)0x0) {
        iVar2 = is_underscoring();
        __s2 = __s2 + (iVar2 != 1);
      }
      iVar2 = strcmp(name,__s2);
      bVar7 = iVar2 == 0;
      if (bVar7) break;
      piVar1 = (int *)(ppcVar3 + 3);
      iVar4 = iVar4 + 1;
      ppcVar3 = ppcVar3 + 7;
      if (*piVar1 == 0) goto LAB_0005432a;
    }
    iVar2 = (int)((longlong)iVar4 * 0x1c);
    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;
    iVar4 = 0xf;
    *(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX;
    *(undefined4 *)((int)&init[0].value + iVar2) = in_EDX;
    *(undefined4 *)((int)&init[0].inited + iVar2) = 1;
    pbVar5 = (byte *)"__image_base__";
    do {
      if (iVar4 == 0) break;
      iVar4 = iVar4 + -1;
      bVar6 = (byte)*name < *pbVar5;
      bVar7 = *name == *pbVar5;
      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);
      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;
    } while (bVar7);
    if ((!bVar6 && !bVar7) != bVar6) {
      return;
    }
    iVar4 = is_underscoring();
    name = (char *)(byte *)0x192f06;
    if (iVar4 != 0) {
      name = "___ImageBase";
    }
  } while( true );
}



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

void __regparm3 FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined **ppuVar1;
  int iVar2;
  char *__s2;
  undefined **ppuVar3;
  int iVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  byte bVar8;
  
  bVar8 = 0;
  do {
    FUN_00052dd0();
    if (PTR_DAT_001ced00 == (undefined *)0x0) {
LAB_0005432a:
                    /* WARNING: Subroutine does not return */
      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");
    }
    iVar4 = 0;
    ppuVar3 = &PTR_s___image_base___001ced10;
    while( true ) {
      __s2 = *ppuVar3;
      if (ppuVar3[2] != (undefined *)0x0) {
        iVar2 = FUN_00052dd0();
        __s2 = __s2 + (iVar2 != 1);
      }
      iVar2 = strcmp((char *)param_1,__s2);
      bVar7 = iVar2 == 0;
      if (bVar7) break;
      ppuVar1 = ppuVar3 + 3;
      iVar4 = iVar4 + 1;
      ppuVar3 = ppuVar3 + 7;
      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;
    }
    iVar2 = (int)((longlong)iVar4 * 0x1c);
    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;
    iVar4 = 0xf;
    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;
    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;
    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;
    pbVar5 = (byte *)"__image_base__";
    do {
      if (iVar4 == 0) break;
      iVar4 = iVar4 + -1;
      bVar6 = *param_1 < *pbVar5;
      bVar7 = *param_1 == *pbVar5;
      param_1 = param_1 + (uint)bVar8 * -2 + 1;
      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;
    } while (bVar7);
    if ((!bVar6 && !bVar7) != bVar6) {
      return;
    }
    iVar4 = FUN_00052dd0();
    param_1 = (byte *)0x192f06;
    if (iVar4 != 0) {
      param_1 = (byte *)"___ImageBase";
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017b80
ADD EBX,0x179dc5
SUB ESP,0x2c
MOV dword ptr [ESP + 0xc],ECX
LEA ECX,[0xd00]
MOV dword ptr [ESP + 0x14],ECX
MOV dword ptr [ESP + 0x8],EDX
LEA ECX,[EBX + 0xfffc4e5e]
MOV dword ptr [ESP + 0x18],ECX
LEA ECX,[EBX + 0xfffc4f05]
MOV dword ptr [ESP + 0x1c],ECX
LEA ESI,[ESI]
CALL 0x00052dd0
MOV EAX,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [EAX + EBX*0x1]
TEST EDI,EDI
JZ 0x0005432a
LEA EBP,[EBX + 0xd10]
XOR EDI,EDI
JMP 0x000542ae
SUB ESP,0x8
PUSH EDX
PUSH ESI
CALL 0x000160c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000542d8
ADD EBP,0x1c
MOV EAX,dword ptr [EBP + -0x10]
ADD EDI,0x1
TEST EAX,EAX
JZ 0x0005432a
MOV ECX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EBP]
TEST ECX,ECX
JZ 0x00054290
MOV dword ptr [ESP + 0x10],EDX
CALL 0x00052dd0
MOV EDX,dword ptr [ESP + 0x10]
CMP EAX,0x1
SETNZ AL
MOVZX EAX,AL
ADD EDX,EAX
JMP 0x00054290
IMUL EDI,EDI,0x1c
MOV EBP,dword ptr [ESP + 0xc]
MOV ECX,0xf
LEA EAX,[EBX + EDI*0x1 + 0xd00]
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0xc],EBP
MOV dword ptr [EAX + 0x8],EDI
MOV EDI,dword ptr [ESP + 0x18]
MOV dword ptr [EAX + 0x14],0x1
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00054322
CALL 0x00052dd0
LEA ESI,[EBX + 0xfffc4f06]
TEST EAX,EAX
CMOVNZ ESI,dword ptr [ESP + 0x1c]
JMP 0x00054270
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd25c0]
PUSH EAX
LEA EAX,[EBX + 0xfffc4e49]
PUSH 0x1b0
PUSH EAX
CALL 0x00033e90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}" { (declaration "undefined **ppuVar1;" type_identifier (pointer_declarator "**ppuVar1" * (pointer_declarator "*ppuVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );" do (compound_statement "{\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  }" { (expression_statement "FUN_00052dd0();" (call_expression "FUN_00052dd0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }" if (parenthesized_expression "(PTR_DAT_001ced00 == (undefined *)0x0)" ( (binary_expression "PTR_DAT_001ced00 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }" { (labeled_statement "LAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");" statement_identifier : comment (expression_statement "FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");" (call_expression "FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name")" identifier (argument_list "("ei386pep.c",0x1b0,"set_pep_name")" ( (string_literal ""ei386pep.c"" " string_content ") , number_literal , (string_literal ""set_pep_name"" " string_content ") ))) ;)) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "ppuVar3 = &PTR_s___image_base___001ced10;" (assignment_expression "ppuVar3 = &PTR_s___image_base___001ced10" identifier = (pointer_expression "&PTR_s___image_base___001ced10" & identifier)) ;) (while_statement "while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }" { (expression_statement "__s2 = *ppuVar3;" (assignment_expression "__s2 = *ppuVar3" identifier = (pointer_expression "*ppuVar3" * identifier)) ;) (if_statement "if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }" if (parenthesized_expression "(ppuVar3[2] != (undefined *)0x0)" ( (binary_expression "ppuVar3[2] != (undefined *)0x0" (subscript_expression "ppuVar3[2]" identifier [ number_literal ]) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }" { (expression_statement "iVar2 = FUN_00052dd0();" (assignment_expression "iVar2 = FUN_00052dd0()" identifier = (call_expression "FUN_00052dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__s2 = __s2 + (iVar2 != 1);" (assignment_expression "__s2 = __s2 + (iVar2 != 1)" identifier = (binary_expression "__s2 + (iVar2 != 1)" identifier + (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )))) ;) })) (expression_statement "iVar2 = strcmp((char *)param_1,__s2);" (assignment_expression "iVar2 = strcmp((char *)param_1,__s2)" identifier = (call_expression "strcmp((char *)param_1,__s2)" identifier (argument_list "((char *)param_1,__s2)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "bVar7 = iVar2 == 0;" (assignment_expression "bVar7 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar7) break;" if (parenthesized_expression "(bVar7)" ( identifier )) (break_statement "break;" break ;)) (expression_statement "ppuVar1 = ppuVar3 + 3;" (assignment_expression "ppuVar1 = ppuVar3 + 3" identifier = (binary_expression "ppuVar3 + 3" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "ppuVar3 = ppuVar3 + 7;" (assignment_expression "ppuVar3 = ppuVar3 + 7" identifier = (binary_expression "ppuVar3 + 7" identifier + number_literal)) ;) (if_statement "if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;" if (parenthesized_expression "(*ppuVar1 == (undefined *)0x0)" ( (binary_expression "*ppuVar1 == (undefined *)0x0" (pointer_expression "*ppuVar1" * identifier) == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005432a;" goto statement_identifier ;)) })) (expression_statement "iVar2 = (int)((longlong)iVar4 * 0x1c);" (assignment_expression "iVar2 = (int)((longlong)iVar4 * 0x1c)" identifier = (cast_expression "(int)((longlong)iVar4 * 0x1c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((longlong)iVar4 * 0x1c)" ( (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" ( (type_descriptor "longlong" type_identifier) ) identifier) * number_literal) )))) ;) (expression_statement "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;" (assignment_expression "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c" identifier = (binary_expression "(longlong)iVar2 != (longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar2" ( (type_descriptor "longlong" type_identifier) ) identifier) != (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" ( (type_descriptor "longlong" type_identifier) ) identifier) * number_literal))) ;) (expression_statement "iVar4 = 0xf;" (assignment_expression "iVar4 = 0xf" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3" (pointer_expression "*(undefined4 *)((int)&DAT_001ced0c + iVar2)" * (cast_expression "(undefined4 *)((int)&DAT_001ced0c + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_001ced0c + iVar2)" ( (binary_expression "(int)&DAT_001ced0c + iVar2" (cast_expression "(int)&DAT_001ced0c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_001ced0c" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2" (pointer_expression "*(undefined4 *)((int)&DAT_001ced08 + iVar2)" * (cast_expression "(undefined4 *)((int)&DAT_001ced08 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_001ced08 + iVar2)" ( (binary_expression "(int)&DAT_001ced08 + iVar2" (cast_expression "(int)&DAT_001ced08" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_001ced08" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1" (pointer_expression "*(undefined4 *)((int)&DAT_001ced14 + iVar2)" * (cast_expression "(undefined4 *)((int)&DAT_001ced14 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_001ced14 + iVar2)" ( (binary_expression "(int)&DAT_001ced14 + iVar2" (cast_expression "(int)&DAT_001ced14" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_001ced14" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "pbVar5 = (byte *)"__image_base__";" (assignment_expression "pbVar5 = (byte *)"__image_base__"" identifier = (cast_expression "(byte *)"__image_base__"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""__image_base__"" " string_content "))) ;) (do_statement "do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);" do (compound_statement "{\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *param_1 < *pbVar5;" (assignment_expression "bVar6 = *param_1 < *pbVar5" identifier = (binary_expression "*param_1 < *pbVar5" (pointer_expression "*param_1" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar7 = *param_1 == *pbVar5;" (assignment_expression "bVar7 = *param_1 == *pbVar5" identifier = (binary_expression "*param_1 == *pbVar5" (pointer_expression "*param_1" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "param_1 = param_1 + (uint)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar8 * -2 + 1" (binary_expression "param_1 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }" if (parenthesized_expression "((!bVar6 && !bVar7) != bVar6)" ( (binary_expression "(!bVar6 && !bVar7) != bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" ( (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) != identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = FUN_00052dd0();" (assignment_expression "iVar4 = FUN_00052dd0()" identifier = (call_expression "FUN_00052dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1 = (byte *)0x192f06;" (assignment_expression "param_1 = (byte *)0x192f06" identifier = (cast_expression "(byte *)0x192f06" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      param_1 = (byte *)"___ImageBase";\n    }" { (expression_statement "param_1 = (byte *)"___ImageBase";" (assignment_expression "param_1 = (byte *)"___ImageBase"" identifier = (cast_expression "(byte *)"___ImageBase"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""___ImageBase"" " string_content "))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 set_pep_name(char *name,bfd_vma val)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 in_ECX;\n  undefined4 in_EDX;\n  char *__s2;\n  char **ppcVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    is_underscoring();\n    if (init[0].ptr == (void *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppcVar3 = &init[0].symbol;\n    while( true ) {\n      __s2 = *ppcVar3;\n      if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp(name,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      piVar1 = (int *)(ppcVar3 + 3);\n      iVar4 = iVar4 + 1;\n      ppcVar3 = ppcVar3 + 7;\n      if (*piVar1 == 0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX;\n    *(undefined4 *)((int)&init[0].value + iVar2) = in_EDX;\n    *(undefined4 *)((int)&init[0].inited + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = (byte)*name < *pbVar5;\n      bVar7 = *name == *pbVar5;\n      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = is_underscoring();\n    name = (char *)(byte *)0x192f06;\n    if (iVar4 != 0) {\n      name = "___ImageBase";\n    }\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 set_pep_name(char *name,bfd_vma val)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 in_ECX;\n  undefined4 in_EDX;\n  char *__s2;\n  char **ppcVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    is_underscoring();\n    if (init[0].ptr == (void *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppcVar3 = &init[0].symbol;\n    while( true ) {\n      __s2 = *ppcVar3;\n      if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp(name,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      piVar1 = (int *)(ppcVar3 + 3);\n      iVar4 = iVar4 + 1;\n      ppcVar3 = ppcVar3 + 7;\n      if (*piVar1 == 0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX;\n    *(undefined4 *)((int)&init[0].value + iVar2) = in_EDX;\n    *(undefined4 *)((int)&init[0].inited + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = (byte)*name < *pbVar5;\n      bVar7 = *name == *pbVar5;\n      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = is_underscoring();\n    name = (char *)(byte *)0x192f06;\n    if (iVar4 != 0) {\n      name = "___ImageBase";\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "set_pep_name(char *name,bfd_vma val)" identifier (parameter_list "(char *name,bfd_vma val)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 in_ECX;\n  undefined4 in_EDX;\n  char *__s2;\n  char **ppcVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    is_underscoring();\n    if (init[0].ptr == (void *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppcVar3 = &init[0].symbol;\n    while( true ) {\n      __s2 = *ppcVar3;\n      if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp(name,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      piVar1 = (int *)(ppcVar3 + 3);\n      iVar4 = iVar4 + 1;\n      ppcVar3 = ppcVar3 + 7;\n      if (*piVar1 == 0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX;\n    *(undefined4 *)((int)&init[0].value + iVar2) = in_EDX;\n    *(undefined4 *)((int)&init[0].inited + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = (byte)*name < *pbVar5;\n      bVar7 = *name == *pbVar5;\n      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = is_underscoring();\n    name = (char *)(byte *)0x192f06;\n    if (iVar4 != 0) {\n      name = "___ImageBase";\n    }\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "undefined4 in_EDX;" type_identifier identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n    is_underscoring();\n    if (init[0].ptr == (void *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppcVar3 = &init[0].symbol;\n    while( true ) {\n      __s2 = *ppcVar3;\n      if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp(name,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      piVar1 = (int *)(ppcVar3 + 3);\n      iVar4 = iVar4 + 1;\n      ppcVar3 = ppcVar3 + 7;\n      if (*piVar1 == 0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX;\n    *(undefined4 *)((int)&init[0].value + iVar2) = in_EDX;\n    *(undefined4 *)((int)&init[0].inited + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = (byte)*name < *pbVar5;\n      bVar7 = *name == *pbVar5;\n      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = is_underscoring();\n    name = (char *)(byte *)0x192f06;\n    if (iVar4 != 0) {\n      name = "___ImageBase";\n    }\n  } while( true );" do (compound_statement "{\n    is_underscoring();\n    if (init[0].ptr == (void *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppcVar3 = &init[0].symbol;\n    while( true ) {\n      __s2 = *ppcVar3;\n      if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp(name,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      piVar1 = (int *)(ppcVar3 + 3);\n      iVar4 = iVar4 + 1;\n      ppcVar3 = ppcVar3 + 7;\n      if (*piVar1 == 0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX;\n    *(undefined4 *)((int)&init[0].value + iVar2) = in_EDX;\n    *(undefined4 *)((int)&init[0].inited + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = (byte)*name < *pbVar5;\n      bVar7 = *name == *pbVar5;\n      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = is_underscoring();\n    name = (char *)(byte *)0x192f06;\n    if (iVar4 != 0) {\n      name = "___ImageBase";\n    }\n  }" { (expression_statement "is_underscoring();" (call_expression "is_underscoring()" identifier (argument_list "()" ( ))) ;) (if_statement "if (init[0].ptr == (void *)0x0) {\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");\n    }" if (parenthesized_expression "(init[0].ptr == (void *)0x0)" ( (binary_expression "init[0].ptr == (void *)0x0" (field_expression "init[0].ptr" (subscript_expression "init[0]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");\n    }" { (labeled_statement "LAB_0005432a:\n                    /* WARNING: Subroutine does not return */\n      ld_abort("ei386pep.c",0x1b0,"set_pep_name");" statement_identifier : comment (expression_statement "ld_abort("ei386pep.c",0x1b0,"set_pep_name");" (call_expression "ld_abort("ei386pep.c",0x1b0,"set_pep_name")" identifier (argument_list "("ei386pep.c",0x1b0,"set_pep_name")" ( (string_literal ""ei386pep.c"" " string_content ") , number_literal , (string_literal ""set_pep_name"" " string_content ") ))) ;)) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "ppcVar3 = &init[0].symbol;" (assignment_expression "ppcVar3 = &init[0].symbol" identifier = (pointer_expression "&init[0].symbol" & (field_expression "init[0].symbol" (subscript_expression "init[0]" identifier [ number_literal ]) . field_identifier))) ;) (while_statement "while( true ) {\n      __s2 = *ppcVar3;\n      if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp(name,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      piVar1 = (int *)(ppcVar3 + 3);\n      iVar4 = iVar4 + 1;\n      ppcVar3 = ppcVar3 + 7;\n      if (*piVar1 == 0) goto LAB_0005432a;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      __s2 = *ppcVar3;\n      if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp(name,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      piVar1 = (int *)(ppcVar3 + 3);\n      iVar4 = iVar4 + 1;\n      ppcVar3 = ppcVar3 + 7;\n      if (*piVar1 == 0) goto LAB_0005432a;\n    }" { (expression_statement "__s2 = *ppcVar3;" (assignment_expression "__s2 = *ppcVar3" identifier = (pointer_expression "*ppcVar3" * identifier)) ;) (if_statement "if (ppcVar3[2] != (char *)0x0) {\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }" if (parenthesized_expression "(ppcVar3[2] != (char *)0x0)" ( (binary_expression "ppcVar3[2] != (char *)0x0" (subscript_expression "ppcVar3[2]" identifier [ number_literal ]) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = is_underscoring();\n        __s2 = __s2 + (iVar2 != 1);\n      }" { (expression_statement "iVar2 = is_underscoring();" (assignment_expression "iVar2 = is_underscoring()" identifier = (call_expression "is_underscoring()" identifier (argument_list "()" ( )))) ;) (expression_statement "__s2 = __s2 + (iVar2 != 1);" (assignment_expression "__s2 = __s2 + (iVar2 != 1)" identifier = (binary_expression "__s2 + (iVar2 != 1)" identifier + (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )))) ;) })) (expression_statement "iVar2 = strcmp(name,__s2);" (assignment_expression "iVar2 = strcmp(name,__s2)" identifier = (call_expression "strcmp(name,__s2)" identifier (argument_list "(name,__s2)" ( identifier , identifier )))) ;) (expression_statement "bVar7 = iVar2 == 0;" (assignment_expression "bVar7 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar7) break;" if (parenthesized_expression "(bVar7)" ( identifier )) (break_statement "break;" break ;)) (expression_statement "piVar1 = (int *)(ppcVar3 + 3);" (assignment_expression "piVar1 = (int *)(ppcVar3 + 3)" identifier = (cast_expression "(int *)(ppcVar3 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppcVar3 + 3)" ( (binary_expression "ppcVar3 + 3" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "ppcVar3 = ppcVar3 + 7;" (assignment_expression "ppcVar3 = ppcVar3 + 7" identifier = (binary_expression "ppcVar3 + 7" identifier + number_literal)) ;) (if_statement "if (*piVar1 == 0) goto LAB_0005432a;" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (goto_statement "goto LAB_0005432a;" goto statement_identifier ;)) })) (expression_statement "iVar2 = (int)((longlong)iVar4 * 0x1c);" (assignment_expression "iVar2 = (int)((longlong)iVar4 * 0x1c)" identifier = (cast_expression "(int)((longlong)iVar4 * 0x1c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((longlong)iVar4 * 0x1c)" ( (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" ( (type_descriptor "longlong" type_identifier) ) identifier) * number_literal) )))) ;) (expression_statement "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;" (assignment_expression "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c" identifier = (binary_expression "(longlong)iVar2 != (longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar2" ( (type_descriptor "longlong" type_identifier) ) identifier) != (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" ( (type_descriptor "longlong" type_identifier) ) identifier) * number_literal))) ;) (expression_statement "iVar4 = 0xf;" (assignment_expression "iVar4 = 0xf" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX;" (assignment_expression "*(undefined4 *)((int)&init[0].value + iVar2 + 4) = in_ECX" (pointer_expression "*(undefined4 *)((int)&init[0].value + iVar2 + 4)" * (cast_expression "(undefined4 *)((int)&init[0].value + iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&init[0].value + iVar2 + 4)" ( (binary_expression "(int)&init[0].value + iVar2 + 4" (binary_expression "(int)&init[0].value + iVar2" (cast_expression "(int)&init[0].value" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&init[0].value" & (field_expression "init[0].value" (subscript_expression "init[0]" identifier [ number_literal ]) . field_identifier))) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&init[0].value + iVar2) = in_EDX;" (assignment_expression "*(undefined4 *)((int)&init[0].value + iVar2) = in_EDX" (pointer_expression "*(undefined4 *)((int)&init[0].value + iVar2)" * (cast_expression "(undefined4 *)((int)&init[0].value + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&init[0].value + iVar2)" ( (binary_expression "(int)&init[0].value + iVar2" (cast_expression "(int)&init[0].value" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&init[0].value" & (field_expression "init[0].value" (subscript_expression "init[0]" identifier [ number_literal ]) . field_identifier))) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&init[0].inited + iVar2) = 1;" (assignment_expression "*(undefined4 *)((int)&init[0].inited + iVar2) = 1" (pointer_expression "*(undefined4 *)((int)&init[0].inited + iVar2)" * (cast_expression "(undefined4 *)((int)&init[0].inited + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&init[0].inited + iVar2)" ( (binary_expression "(int)&init[0].inited + iVar2" (cast_expression "(int)&init[0].inited" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&init[0].inited" & (field_expression "init[0].inited" (subscript_expression "init[0]" identifier [ number_literal ]) . field_identifier))) + identifier) )))) = number_literal) ;) (expression_statement "pbVar5 = (byte *)"__image_base__";" (assignment_expression "pbVar5 = (byte *)"__image_base__"" identifier = (cast_expression "(byte *)"__image_base__"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""__image_base__"" " string_content "))) ;) (do_statement "do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = (byte)*name < *pbVar5;\n      bVar7 = *name == *pbVar5;\n      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);" do (compound_statement "{\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = (byte)*name < *pbVar5;\n      bVar7 = *name == *pbVar5;\n      name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = (byte)*name < *pbVar5;" (assignment_expression "bVar6 = (byte)*name < *pbVar5" identifier = (binary_expression "(byte)*name < *pbVar5" (binary_expression "(byte)*name" (parenthesized_expression "(byte)" ( identifier )) * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar7 = *name == *pbVar5;" (assignment_expression "bVar7 = *name == *pbVar5" identifier = (binary_expression "*name == *pbVar5" (pointer_expression "*name" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "name = (char *)((byte *)name + (uint)bVar8 * -2 + 1);" (assignment_expression "name = (char *)((byte *)name + (uint)bVar8 * -2 + 1)" identifier = (cast_expression "(char *)((byte *)name + (uint)bVar8 * -2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)name + (uint)bVar8 * -2 + 1)" ( (binary_expression "(byte *)name + (uint)bVar8 * -2 + 1" (binary_expression "(byte *)name + (uint)bVar8 * -2" (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }" if (parenthesized_expression "((!bVar6 && !bVar7) != bVar6)" ( (binary_expression "(!bVar6 && !bVar7) != bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" ( (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) != identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = is_underscoring();" (assignment_expression "iVar4 = is_underscoring()" identifier = (call_expression "is_underscoring()" identifier (argument_list "()" ( )))) ;) (expression_statement "name = (char *)(byte *)0x192f06;" (assignment_expression "name = (char *)(byte *)0x192f06" identifier = (cast_expression "(char *)(byte *)0x192f06" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(byte *)0x192f06" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (iVar4 != 0) {\n      name = "___ImageBase";\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      name = "___ImageBase";\n    }" { (expression_statement "name = "___ImageBase";" (assignment_expression "name = "___ImageBase"" identifier = (string_literal ""___ImageBase"" " string_content ")) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}" { (declaration "undefined **ppuVar1;" type_identifier (pointer_declarator "**ppuVar1" * (pointer_declarator "*ppuVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );" do (compound_statement "{\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  }" { (expression_statement "FUN_00052dd0();" (call_expression "FUN_00052dd0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }" if (parenthesized_expression "(PTR_DAT_001ced00 == (undefined *)0x0)" ( (binary_expression "PTR_DAT_001ced00 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }" { (labeled_statement "LAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");" statement_identifier : (expression_statement "FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");" (call_expression "FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name")" identifier (argument_list "("ei386pep.c",0x1b0,"set_pep_name")" ( (string_literal ""ei386pep.c"" " string_content ") , number_literal , (string_literal ""set_pep_name"" " string_content ") ))) ;)) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "ppuVar3 = &PTR_s___image_base___001ced10;" (assignment_expression "ppuVar3 = &PTR_s___image_base___001ced10" identifier = (pointer_expression "&PTR_s___image_base___001ced10" & identifier)) ;) (while_statement "while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }" { (expression_statement "__s2 = *ppuVar3;" (assignment_expression "__s2 = *ppuVar3" identifier = (pointer_expression "*ppuVar3" * identifier)) ;) (if_statement "if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }" if (parenthesized_expression "(ppuVar3[2] != (undefined *)0x0)" ( (binary_expression "ppuVar3[2] != (undefined *)0x0" (subscript_expression "ppuVar3[2]" identifier [ number_literal ]) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }" { (expression_statement "iVar2 = FUN_00052dd0();" (assignment_expression "iVar2 = FUN_00052dd0()" identifier = (call_expression "FUN_00052dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__s2 = __s2 + (iVar2 != 1);" (assignment_expression "__s2 = __s2 + (iVar2 != 1)" identifier = (binary_expression "__s2 + (iVar2 != 1)" identifier + (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )))) ;) })) (expression_statement "iVar2 = strcmp((char *)param_1,__s2);" (assignment_expression "iVar2 = strcmp((char *)param_1,__s2)" identifier = (call_expression "strcmp((char *)param_1,__s2)" identifier (argument_list "((char *)param_1,__s2)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "bVar7 = iVar2 == 0;" (assignment_expression "bVar7 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar7) break;" if (parenthesized_expression "(bVar7)" ( identifier )) (break_statement "break;" break ;)) (expression_statement "ppuVar1 = ppuVar3 + 3;" (assignment_expression "ppuVar1 = ppuVar3 + 3" identifier = (binary_expression "ppuVar3 + 3" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "ppuVar3 = ppuVar3 + 7;" (assignment_expression "ppuVar3 = ppuVar3 + 7" identifier = (binary_expression "ppuVar3 + 7" identifier + number_literal)) ;) (if_statement "if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;" if (parenthesized_expression "(*ppuVar1 == (undefined *)0x0)" ( (binary_expression "*ppuVar1 == (undefined *)0x0" (pointer_expression "*ppuVar1" * identifier) == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005432a;" goto statement_identifier ;)) })) (expression_statement "iVar2 = (int)((longlong)iVar4 * 0x1c);" (assignment_expression "iVar2 = (int)((longlong)iVar4 * 0x1c)" identifier = (cast_expression "(int)((longlong)iVar4 * 0x1c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((longlong)iVar4 * 0x1c)" ( (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" ( (type_descriptor "longlong" type_identifier) ) identifier) * number_literal) )))) ;) (expression_statement "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;" (assignment_expression "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c" identifier = (binary_expression "(longlong)iVar2 != (longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar2" ( (type_descriptor "longlong" type_identifier) ) identifier) != (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" ( (type_descriptor "longlong" type_identifier) ) identifier) * number_literal))) ;) (expression_statement "iVar4 = 0xf;" (assignment_expression "iVar4 = 0xf" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3" (pointer_expression "*(undefined4 *)((int)&DAT_001ced0c + iVar2)" * (cast_expression "(undefined4 *)((int)&DAT_001ced0c + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_001ced0c + iVar2)" ( (binary_expression "(int)&DAT_001ced0c + iVar2" (cast_expression "(int)&DAT_001ced0c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_001ced0c" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2" (pointer_expression "*(undefined4 *)((int)&DAT_001ced08 + iVar2)" * (cast_expression "(undefined4 *)((int)&DAT_001ced08 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_001ced08 + iVar2)" ( (binary_expression "(int)&DAT_001ced08 + iVar2" (cast_expression "(int)&DAT_001ced08" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_001ced08" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1" (pointer_expression "*(undefined4 *)((int)&DAT_001ced14 + iVar2)" * (cast_expression "(undefined4 *)((int)&DAT_001ced14 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_001ced14 + iVar2)" ( (binary_expression "(int)&DAT_001ced14 + iVar2" (cast_expression "(int)&DAT_001ced14" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_001ced14" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "pbVar5 = (byte *)"__image_base__";" (assignment_expression "pbVar5 = (byte *)"__image_base__"" identifier = (cast_expression "(byte *)"__image_base__"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""__image_base__"" " string_content "))) ;) (do_statement "do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);" do (compound_statement "{\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *param_1 < *pbVar5;" (assignment_expression "bVar6 = *param_1 < *pbVar5" identifier = (binary_expression "*param_1 < *pbVar5" (pointer_expression "*param_1" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar7 = *param_1 == *pbVar5;" (assignment_expression "bVar7 = *param_1 == *pbVar5" identifier = (binary_expression "*param_1 == *pbVar5" (pointer_expression "*param_1" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "param_1 = param_1 + (uint)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar8 * -2 + 1" (binary_expression "param_1 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }" if (parenthesized_expression "((!bVar6 && !bVar7) != bVar6)" ( (binary_expression "(!bVar6 && !bVar7) != bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" ( (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) != identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = FUN_00052dd0();" (assignment_expression "iVar4 = FUN_00052dd0()" identifier = (call_expression "FUN_00052dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1 = (byte *)0x192f06;" (assignment_expression "param_1 = (byte *)0x192f06" identifier = (cast_expression "(byte *)0x192f06" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      param_1 = (byte *)"___ImageBase";\n    }" { (expression_statement "param_1 = (byte *)"___ImageBase";" (assignment_expression "param_1 = (byte *)"___ImageBase"" identifier = (cast_expression "(byte *)"___ImageBase"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""___ImageBase"" " string_content "))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;)) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT != LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00054230(byte *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00054230") (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined **ppuVar1;\n  int iVar2;\n  char *__s2;\n  undefined **ppuVar3;\n  int iVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );\n}" ({ "{") (declaration "undefined **ppuVar1;" (type_identifier "undefined") (pointer_declarator "**ppuVar1" (* "*") (pointer_declarator "*ppuVar1" (* "*") (identifier "ppuVar1"))) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "undefined **ppuVar3;" (type_identifier "undefined") (pointer_declarator "**ppuVar3" (* "*") (pointer_declarator "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" (identifier "bVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  } while( true );" (do "do") (compound_statement "{\n    FUN_00052dd0();\n    if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }\n    iVar4 = 0;\n    ppuVar3 = &PTR_s___image_base___001ced10;\n    while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }\n    iVar2 = (int)((longlong)iVar4 * 0x1c);\n    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;\n    iVar4 = 0xf;\n    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;\n    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;\n    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;\n    pbVar5 = (byte *)"__image_base__";\n    do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);\n    if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }\n    iVar4 = FUN_00052dd0();\n    param_1 = (byte *)0x192f06;\n    if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }\n  }" ({ "{") (expression_statement "FUN_00052dd0();" (call_expression "FUN_00052dd0()" (identifier "FUN_00052dd0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (PTR_DAT_001ced00 == (undefined *)0x0) {\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }" (if "if") (parenthesized_expression "(PTR_DAT_001ced00 == (undefined *)0x0)" (( "(") (binary_expression "PTR_DAT_001ced00 == (undefined *)0x0" (identifier "PTR_DAT_001ced00") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");\n    }" ({ "{") (labeled_statement "LAB_0005432a:\n                    \n      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");" (statement_identifier "LAB_0005432a") (: ":") (expression_statement "FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");" (call_expression "FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name")" (identifier "FUN_00033e90") (argument_list "("ei386pep.c",0x1b0,"set_pep_name")" (( "(") (string_literal ""ei386pep.c"" (" """) (string_content "ei386pep.c") (" """)) (, ",") (number_literal "0x1b0") (, ",") (string_literal ""set_pep_name"" (" """) (string_content "set_pep_name") (" """)) () ")"))) (; ";"))) (} "}"))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "ppuVar3 = &PTR_s___image_base___001ced10;" (assignment_expression "ppuVar3 = &PTR_s___image_base___001ced10" (identifier "ppuVar3") (= "=") (pointer_expression "&PTR_s___image_base___001ced10" (& "&") (identifier "PTR_s___image_base___001ced10"))) (; ";")) (while_statement "while( true ) {\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      __s2 = *ppuVar3;\n      if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }\n      iVar2 = strcmp((char *)param_1,__s2);\n      bVar7 = iVar2 == 0;\n      if (bVar7) break;\n      ppuVar1 = ppuVar3 + 3;\n      iVar4 = iVar4 + 1;\n      ppuVar3 = ppuVar3 + 7;\n      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;\n    }" ({ "{") (expression_statement "__s2 = *ppuVar3;" (assignment_expression "__s2 = *ppuVar3" (identifier "__s2") (= "=") (pointer_expression "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (if_statement "if (ppuVar3[2] != (undefined *)0x0) {\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }" (if "if") (parenthesized_expression "(ppuVar3[2] != (undefined *)0x0)" (( "(") (binary_expression "ppuVar3[2] != (undefined *)0x0" (subscript_expression "ppuVar3[2]" (identifier "ppuVar3") ([ "[") (number_literal "2") (] "]")) (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar2 = FUN_00052dd0();\n        __s2 = __s2 + (iVar2 != 1);\n      }" ({ "{") (expression_statement "iVar2 = FUN_00052dd0();" (assignment_expression "iVar2 = FUN_00052dd0()" (identifier "iVar2") (= "=") (call_expression "FUN_00052dd0()" (identifier "FUN_00052dd0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__s2 = __s2 + (iVar2 != 1);" (assignment_expression "__s2 = __s2 + (iVar2 != 1)" (identifier "__s2") (= "=") (binary_expression "__s2 + (iVar2 != 1)" (identifier "__s2") (+ "+") (parenthesized_expression "(iVar2 != 1)" (( "(") (binary_expression "iVar2 != 1" (identifier "iVar2") (!= "!=") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar2 = strcmp((char *)param_1,__s2);" (assignment_expression "iVar2 = strcmp((char *)param_1,__s2)" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)param_1,__s2)" (identifier "strcmp") (argument_list "((char *)param_1,__s2)" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (identifier "__s2") () ")")))) (; ";")) (expression_statement "bVar7 = iVar2 == 0;" (assignment_expression "bVar7 = iVar2 == 0" (identifier "bVar7") (= "=") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar7) break;" (if "if") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "ppuVar1 = ppuVar3 + 3;" (assignment_expression "ppuVar1 = ppuVar3 + 3" (identifier "ppuVar1") (= "=") (binary_expression "ppuVar3 + 3" (identifier "ppuVar3") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "ppuVar3 = ppuVar3 + 7;" (assignment_expression "ppuVar3 = ppuVar3 + 7" (identifier "ppuVar3") (= "=") (binary_expression "ppuVar3 + 7" (identifier "ppuVar3") (+ "+") (number_literal "7"))) (; ";")) (if_statement "if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;" (if "if") (parenthesized_expression "(*ppuVar1 == (undefined *)0x0)" (( "(") (binary_expression "*ppuVar1 == (undefined *)0x0" (pointer_expression "*ppuVar1" (* "*") (identifier "ppuVar1")) (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005432a;" (goto "goto") (statement_identifier "LAB_0005432a") (; ";"))) (} "}"))) (expression_statement "iVar2 = (int)((longlong)iVar4 * 0x1c);" (assignment_expression "iVar2 = (int)((longlong)iVar4 * 0x1c)" (identifier "iVar2") (= "=") (cast_expression "(int)((longlong)iVar4 * 0x1c)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((longlong)iVar4 * 0x1c)" (( "(") (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" (( "(") (type_descriptor "longlong" (type_identifier "longlong")) () ")") (identifier "iVar4")) (* "*") (number_literal "0x1c")) () ")")))) (; ";")) (expression_statement "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;" (assignment_expression "bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c" (identifier "bVar6") (= "=") (binary_expression "(longlong)iVar2 != (longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar2" (( "(") (type_descriptor "longlong" (type_identifier "longlong")) () ")") (identifier "iVar2")) (!= "!=") (binary_expression "(longlong)iVar4 * 0x1c" (cast_expression "(longlong)iVar4" (( "(") (type_descriptor "longlong" (type_identifier "longlong")) () ")") (identifier "iVar4")) (* "*") (number_literal "0x1c")))) (; ";")) (expression_statement "iVar4 = 0xf;" (assignment_expression "iVar4 = 0xf" (identifier "iVar4") (= "=") (number_literal "0xf")) (; ";")) (expression_statement "*(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3" (pointer_expression "*(undefined4 *)((int)&DAT_001ced0c + iVar2)" (* "*") (cast_expression "(undefined4 *)((int)&DAT_001ced0c + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&DAT_001ced0c + iVar2)" (( "(") (binary_expression "(int)&DAT_001ced0c + iVar2" (cast_expression "(int)&DAT_001ced0c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&DAT_001ced0c" (& "&") (identifier "DAT_001ced0c"))) (+ "+") (identifier "iVar2")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2" (pointer_expression "*(undefined4 *)((int)&DAT_001ced08 + iVar2)" (* "*") (cast_expression "(undefined4 *)((int)&DAT_001ced08 + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&DAT_001ced08 + iVar2)" (( "(") (binary_expression "(int)&DAT_001ced08 + iVar2" (cast_expression "(int)&DAT_001ced08" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&DAT_001ced08" (& "&") (identifier "DAT_001ced08"))) (+ "+") (identifier "iVar2")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;" (assignment_expression "*(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1" (pointer_expression "*(undefined4 *)((int)&DAT_001ced14 + iVar2)" (* "*") (cast_expression "(undefined4 *)((int)&DAT_001ced14 + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&DAT_001ced14 + iVar2)" (( "(") (binary_expression "(int)&DAT_001ced14 + iVar2" (cast_expression "(int)&DAT_001ced14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&DAT_001ced14" (& "&") (identifier "DAT_001ced14"))) (+ "+") (identifier "iVar2")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "pbVar5 = (byte *)"__image_base__";" (assignment_expression "pbVar5 = (byte *)"__image_base__"" (identifier "pbVar5") (= "=") (cast_expression "(byte *)"__image_base__"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""__image_base__"" (" """) (string_content "__image_base__") (" """)))) (; ";")) (do_statement "do {\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    } while (bVar7);" (do "do") (compound_statement "{\n      if (iVar4 == 0) break;\n      iVar4 = iVar4 + -1;\n      bVar6 = *param_1 < *pbVar5;\n      bVar7 = *param_1 == *pbVar5;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar6 = *param_1 < *pbVar5;" (assignment_expression "bVar6 = *param_1 < *pbVar5" (identifier "bVar6") (= "=") (binary_expression "*param_1 < *pbVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "bVar7 = *param_1 == *pbVar5;" (assignment_expression "bVar7 = *param_1 == *pbVar5" (identifier "bVar7") (= "=") (binary_expression "*param_1 == *pbVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "param_1 = param_1 + (uint)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar8 * -2 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + (uint)bVar8 * -2 + 1" (binary_expression "param_1 + (uint)bVar8 * -2" (identifier "param_1") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar8 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (; ";")) (if_statement "if ((!bVar6 && !bVar7) != bVar6) {\n      return;\n    }" (if "if") (parenthesized_expression "((!bVar6 && !bVar7) != bVar6)" (( "(") (binary_expression "(!bVar6 && !bVar7) != bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" (( "(") (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar7" (! "!") (identifier "bVar7"))) () ")")) (!= "!=") (identifier "bVar6")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_00052dd0();" (assignment_expression "iVar4 = FUN_00052dd0()" (identifier "iVar4") (= "=") (call_expression "FUN_00052dd0()" (identifier "FUN_00052dd0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1 = (byte *)0x192f06;" (assignment_expression "param_1 = (byte *)0x192f06" (identifier "param_1") (= "=") (cast_expression "(byte *)0x192f06" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x192f06"))) (; ";")) (if_statement "if (iVar4 != 0) {\n      param_1 = (byte *)"___ImageBase";\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_1 = (byte *)"___ImageBase";\n    }" ({ "{") (expression_statement "param_1 = (byte *)"___ImageBase";" (assignment_expression "param_1 = (byte *)"___ImageBase"" (identifier "param_1") (= "=") (cast_expression "(byte *)"___ImageBase"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""___ImageBase"" (" """) (string_content "___ImageBase") (" """)))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_8,type_1 val)

{
  int *piVar1;
  int var_4;
  type_2 in_ECX;
  type_2 in_EDX;
  char *var_3;
  char **var_6;
  int var_7;
  type_3 *var_9;
  bool var_10;
  bool bVar7;
  type_3 bVar8;
  
  bVar8 = 0;
  do {
    var_1();
    if (init[0].ptr == (void *)0x0) {
LAB_0005432a:
                    /* WARNING: Subroutine does not return */
      var_2("ei386pep.c",0x1b0,"set_pep_name");
    }
    var_7 = 0;
    var_6 = &init[0].symbol;
    while( true ) {
      var_3 = *var_6;
      if (var_6[2] != (char *)0x0) {
        var_4 = var_1();
        var_3 = var_3 + (var_4 != 1);
      }
      var_4 = var_5(var_8,var_3);
      bVar7 = var_4 == 0;
      if (bVar7) break;
      piVar1 = (int *)(var_6 + 3);
      var_7 = var_7 + 1;
      var_6 = var_6 + 7;
      if (*piVar1 == 0) goto LAB_0005432a;
    }
    var_4 = (int)((type_4)var_7 * 0x1c);
    var_10 = (type_4)var_4 != (type_4)var_7 * 0x1c;
    var_7 = 0xf;
    *(type_2 *)((int)&init[0].value + var_4 + 4) = in_ECX;
    *(type_2 *)((int)&init[0].value + var_4) = in_EDX;
    *(type_2 *)((int)&init[0].inited + var_4) = 1;
    var_9 = (type_3 *)"__image_base__";
    do {
      if (var_7 == 0) break;
      var_7 = var_7 + -1;
      var_10 = (type_3)*var_8 < *var_9;
      bVar7 = *var_8 == *var_9;
      var_8 = (char *)((type_3 *)var_8 + (type_5)bVar8 * -2 + 1);
      var_9 = var_9 + (type_5)bVar8 * -2 + 1;
    } while (bVar7);
    if ((!var_10 && !bVar7) != var_10) {
      return;
    }
    var_7 = var_1();
    var_8 = (char *)(type_3 *)0x192f06;
    if (var_7 != 0) {
      var_8 = "___ImageBase";
    }
  } while( true );
}


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

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

void __regparm3 MASKED(byte *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined **ppuVar1;
  int iVar2;
  char *__s2;
  undefined **ppuVar3;
  int iVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  byte bVar8;
  
  bVar8 = 0;
  do {
    FUN_00052dd0();
    if (PTR_DAT_001ced00 == (undefined *)0x0) {
LAB_0005432a:
                    /* WARNING: Subroutine does not return */
      FUN_00033e90("ei386pep.c",0x1b0,"set_pep_name");
    }
    iVar4 = 0;
    ppuVar3 = &PTR_s___image_base___001ced10;
    while( true ) {
      __s2 = *ppuVar3;
      if (ppuVar3[2] != (undefined *)0x0) {
        iVar2 = FUN_00052dd0();
        __s2 = __s2 + (iVar2 != 1);
      }
      iVar2 = strcmp((char *)param_1,__s2);
      bVar7 = iVar2 == 0;
      if (bVar7) break;
      ppuVar1 = ppuVar3 + 3;
      iVar4 = iVar4 + 1;
      ppuVar3 = ppuVar3 + 7;
      if (*ppuVar1 == (undefined *)0x0) goto LAB_0005432a;
    }
    iVar2 = (int)((longlong)iVar4 * 0x1c);
    bVar6 = (longlong)iVar2 != (longlong)iVar4 * 0x1c;
    iVar4 = 0xf;
    *(undefined4 *)((int)&DAT_001ced0c + iVar2) = param_3;
    *(undefined4 *)((int)&DAT_001ced08 + iVar2) = param_2;
    *(undefined4 *)((int)&DAT_001ced14 + iVar2) = 1;
    pbVar5 = (byte *)"__image_base__";
    do {
      if (iVar4 == 0) break;
      iVar4 = iVar4 + -1;
      bVar6 = *param_1 < *pbVar5;
      bVar7 = *param_1 == *pbVar5;
      param_1 = param_1 + (uint)bVar8 * -2 + 1;
      pbVar5 = pbVar5 + (uint)bVar8 * -2 + 1;
    } while (bVar7);
    if ((!bVar6 && !bVar7) != bVar6) {
      return;
    }
    iVar4 = FUN_00052dd0();
    param_1 = (byte *)0x192f06;
    if (iVar4 != 0) {
      param_1 = (byte *)"___ImageBase";
    }
  } while( true );
}

