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

int cplus_demangle_fill_operator(demangle_component *p,char *opname,int args)

{
  size_t sVar1;
  char *__s2;
  int iVar2;
  int iVar3;
  size_t *psVar4;
  
  if (((p != (demangle_component *)0x0) && (opname != (char *)0x0)) &&
     (sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0)) {
    iVar3 = 0;
    __s2 = (char *)cplus_demangle_operators._4_4_;
    psVar4 = (size_t *)(cplus_demangle_operators + 8);
    while (((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))
    {
      __s2 = (char *)psVar4[3];
      iVar3 = iVar3 + 1;
      psVar4 = psVar4 + 4;
      if (__s2 == (char *)0x0) {
        return 0;
      }
    }
    p->type = DEMANGLE_COMPONENT_OPERATOR;
    (p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10;
    p->d_printing = 0;
    return 1;
  }
  return 0;
}



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

undefined4 FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)

{
  size_t sVar1;
  char *__s2;
  int iVar2;
  int iVar3;
  size_t *psVar4;
  
  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&
     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {
    iVar3 = 0;
    __s2 = PTR_DAT_00386c04;
    psVar4 = &DAT_00386c08;
    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||
           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {
      __s2 = (char *)psVar4[3];
      iVar3 = iVar3 + 1;
      psVar4 = psVar4 + 4;
      if (__s2 == (char *)0x0) {
        return 0;
      }
    }
    *param_1 = 0x31;
    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;
    param_1[1] = 0;
    return 1;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1ad567
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x38]
TEST EDX,EDX
JZ 0x001e1b50
MOV EAX,dword ptr [ESP + 0x34]
TEST EAX,EAX
JZ 0x001e1b50
SUB ESP,0xc
PUSH dword ptr [ESP + 0x40]
CALL 0x000295f0
LEA EDX,[EBX + 0xffff7c00]
ADD ESP,0x10
MOV ECX,EAX
MOV EAX,dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0xc],EDX
TEST EAX,EAX
JZ 0x001e1b50
LEA ESI,[EDX + 0x8]
XOR EBP,EBP
JMP 0x001e1afd
ADD ESI,0x10
MOV EAX,dword ptr [ESI + -0x4]
ADD EBP,0x1
TEST EAX,EAX
JZ 0x001e1b46
CMP dword ptr [ESI],ECX
JNZ 0x001e1af0
CMP dword ptr [ESI + 0x4],EDI
JNZ 0x001e1af0
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x40]
CALL 0x00029b10
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JNZ 0x001e1af0
MOV EDX,EBP
MOV EBP,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x30]
SHL EDX,0x4
ADD EBP,EDX
MOV dword ptr [EAX],0x31
MOV dword ptr [EAX + 0x8],EBP
MOV dword ptr [EAX + 0x4],0x0
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,size_t param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t *psVar4;" primitive_type (pointer_declarator "*psVar4" * identifier) ;) (if_statement "if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }" if (parenthesized_expression "(((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0))" ( (binary_expression "((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)" (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0))" ( (binary_expression "(param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)" ( (comma_expression "sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "PTR_DAT_00386c04 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "__s2 = PTR_DAT_00386c04;" (assignment_expression "__s2 = PTR_DAT_00386c04" identifier = identifier) ;) (expression_statement "psVar4 = &DAT_00386c08;" (assignment_expression "psVar4 = &DAT_00386c08" identifier = (pointer_expression "&DAT_00386c08" & identifier)) ;) (while_statement "while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" while (parenthesized_expression "(((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0)))" ( (parenthesized_expression "((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))" ( (binary_expression "(*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0)" (parenthesized_expression "(*psVar4 != sVar1 || (psVar4[1] != param_3))" ( (binary_expression "*psVar4 != sVar1 || (psVar4[1] != param_3)" (binary_expression "*psVar4 != sVar1" (pointer_expression "*psVar4" * identifier) != identifier) || (parenthesized_expression "(psVar4[1] != param_3)" ( (binary_expression "psVar4[1] != param_3" (subscript_expression "psVar4[1]" identifier [ number_literal ]) != identifier) ))) )) || (parenthesized_expression "(iVar2 = strcmp(param_2,__s2), iVar2 != 0)" ( (comma_expression "iVar2 = strcmp(param_2,__s2), iVar2 != 0" (assignment_expression "iVar2 = strcmp(param_2,__s2)" identifier = (call_expression "strcmp(param_2,__s2)" identifier (argument_list "(param_2,__s2)" ( identifier , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) )) (compound_statement "{\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" { (expression_statement "__s2 = (char *)psVar4[3];" (assignment_expression "__s2 = (char *)psVar4[3]" identifier = (cast_expression "(char *)psVar4[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "psVar4[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "psVar4 = psVar4 + 4;" (assignment_expression "psVar4 = psVar4 + 4" identifier = (binary_expression "psVar4 + 4" identifier + number_literal)) ;) (if_statement "if (__s2 == (char *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "*param_1 = 0x31;" (assignment_expression "*param_1 = 0x31" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;" (assignment_expression "param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "&PTR_DAT_00386c00 + iVar3 * 4" (pointer_expression "&PTR_DAT_00386c00" & identifier) + (binary_expression "iVar3 * 4" identifier * number_literal))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint cplus_demangle_fill_operator(demangle_component *p,char *opname,int args)\n\n{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((p != (demangle_component *)0x0) && (opname != (char *)0x0)) &&\n     (sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0)) {\n    iVar3 = 0;\n    __s2 = (char *)cplus_demangle_operators._4_4_;\n    psVar4 = (size_t *)(cplus_demangle_operators + 8);\n    while (((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))\n    {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    p->type = DEMANGLE_COMPONENT_OPERATOR;\n    (p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10;\n    p->d_printing = 0;\n    return 1;\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int cplus_demangle_fill_operator(demangle_component *p,char *opname,int args)\n\n{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((p != (demangle_component *)0x0) && (opname != (char *)0x0)) &&\n     (sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0)) {\n    iVar3 = 0;\n    __s2 = (char *)cplus_demangle_operators._4_4_;\n    psVar4 = (size_t *)(cplus_demangle_operators + 8);\n    while (((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))\n    {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    p->type = DEMANGLE_COMPONENT_OPERATOR;\n    (p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10;\n    p->d_printing = 0;\n    return 1;\n  }\n  return 0;\n}" primitive_type (function_declarator "cplus_demangle_fill_operator(demangle_component *p,char *opname,int args)" identifier (parameter_list "(demangle_component *p,char *opname,int args)" ( (parameter_declaration "demangle_component *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *opname" primitive_type (pointer_declarator "*opname" * identifier)) , (parameter_declaration "int args" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((p != (demangle_component *)0x0) && (opname != (char *)0x0)) &&\n     (sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0)) {\n    iVar3 = 0;\n    __s2 = (char *)cplus_demangle_operators._4_4_;\n    psVar4 = (size_t *)(cplus_demangle_operators + 8);\n    while (((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))\n    {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    p->type = DEMANGLE_COMPONENT_OPERATOR;\n    (p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10;\n    p->d_printing = 0;\n    return 1;\n  }\n  return 0;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t *psVar4;" primitive_type (pointer_declarator "*psVar4" * identifier) ;) (if_statement "if (((p != (demangle_component *)0x0) && (opname != (char *)0x0)) &&\n     (sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0)) {\n    iVar3 = 0;\n    __s2 = (char *)cplus_demangle_operators._4_4_;\n    psVar4 = (size_t *)(cplus_demangle_operators + 8);\n    while (((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))\n    {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    p->type = DEMANGLE_COMPONENT_OPERATOR;\n    (p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10;\n    p->d_printing = 0;\n    return 1;\n  }" if (parenthesized_expression "(((p != (demangle_component *)0x0) && (opname != (char *)0x0)) &&\n     (sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0))" ( (binary_expression "((p != (demangle_component *)0x0) && (opname != (char *)0x0)) &&\n     (sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0)" (parenthesized_expression "((p != (demangle_component *)0x0) && (opname != (char *)0x0))" ( (binary_expression "(p != (demangle_component *)0x0) && (opname != (char *)0x0)" (parenthesized_expression "(p != (demangle_component *)0x0)" ( (binary_expression "p != (demangle_component *)0x0" identifier != (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(opname != (char *)0x0)" ( (binary_expression "opname != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0)" ( (comma_expression "sVar1 = strlen(opname), cplus_demangle_operators._4_4_ != 0" (assignment_expression "sVar1 = strlen(opname)" identifier = (call_expression "strlen(opname)" identifier (argument_list "(opname)" ( identifier )))) , (binary_expression "cplus_demangle_operators._4_4_ != 0" (field_expression "cplus_demangle_operators._4_4_" identifier . field_identifier) != number_literal)) ))) )) (compound_statement "{\n    iVar3 = 0;\n    __s2 = (char *)cplus_demangle_operators._4_4_;\n    psVar4 = (size_t *)(cplus_demangle_operators + 8);\n    while (((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))\n    {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    p->type = DEMANGLE_COMPONENT_OPERATOR;\n    (p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10;\n    p->d_printing = 0;\n    return 1;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "__s2 = (char *)cplus_demangle_operators._4_4_;" (assignment_expression "__s2 = (char *)cplus_demangle_operators._4_4_" identifier = (cast_expression "(char *)cplus_demangle_operators._4_4_" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "cplus_demangle_operators._4_4_" identifier . field_identifier))) ;) (expression_statement "psVar4 = (size_t *)(cplus_demangle_operators + 8);" (assignment_expression "psVar4 = (size_t *)(cplus_demangle_operators + 8)" identifier = (cast_expression "(size_t *)(cplus_demangle_operators + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(cplus_demangle_operators + 8)" ( (binary_expression "cplus_demangle_operators + 8" identifier + number_literal) )))) ;) (while_statement "while (((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))\n    {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" while (parenthesized_expression "(((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)))" ( (parenthesized_expression "((*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0))" ( (binary_expression "(*psVar4 != sVar1 || (psVar4[1] != args)) || (iVar2 = strcmp(opname,__s2), iVar2 != 0)" (parenthesized_expression "(*psVar4 != sVar1 || (psVar4[1] != args))" ( (binary_expression "*psVar4 != sVar1 || (psVar4[1] != args)" (binary_expression "*psVar4 != sVar1" (pointer_expression "*psVar4" * identifier) != identifier) || (parenthesized_expression "(psVar4[1] != args)" ( (binary_expression "psVar4[1] != args" (subscript_expression "psVar4[1]" identifier [ number_literal ]) != identifier) ))) )) || (parenthesized_expression "(iVar2 = strcmp(opname,__s2), iVar2 != 0)" ( (comma_expression "iVar2 = strcmp(opname,__s2), iVar2 != 0" (assignment_expression "iVar2 = strcmp(opname,__s2)" identifier = (call_expression "strcmp(opname,__s2)" identifier (argument_list "(opname,__s2)" ( identifier , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) )) (compound_statement "{\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" { (expression_statement "__s2 = (char *)psVar4[3];" (assignment_expression "__s2 = (char *)psVar4[3]" identifier = (cast_expression "(char *)psVar4[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "psVar4[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "psVar4 = psVar4 + 4;" (assignment_expression "psVar4 = psVar4 + 4" identifier = (binary_expression "psVar4 + 4" identifier + number_literal)) ;) (if_statement "if (__s2 == (char *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "p->type = DEMANGLE_COMPONENT_OPERATOR;" (assignment_expression "p->type = DEMANGLE_COMPONENT_OPERATOR" (field_expression "p->type" identifier -> field_identifier) = identifier) ;) (expression_statement "(p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10;" (assignment_expression "(p->u).s_name.s = cplus_demangle_operators + iVar3 * 0x10" (field_expression "(p->u).s_name.s" (field_expression "(p->u).s_name" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (binary_expression "cplus_demangle_operators + iVar3 * 0x10" identifier + (binary_expression "iVar3 * 0x10" identifier * number_literal))) ;) (expression_statement "p->d_printing = 0;" (assignment_expression "p->d_printing = 0" (field_expression "p->d_printing" identifier -> field_identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,size_t param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t *psVar4;" primitive_type (pointer_declarator "*psVar4" * identifier) ;) (if_statement "if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }" if (parenthesized_expression "(((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0))" ( (binary_expression "((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)" (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0))" ( (binary_expression "(param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)" ( (comma_expression "sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "PTR_DAT_00386c04 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "__s2 = PTR_DAT_00386c04;" (assignment_expression "__s2 = PTR_DAT_00386c04" identifier = identifier) ;) (expression_statement "psVar4 = &DAT_00386c08;" (assignment_expression "psVar4 = &DAT_00386c08" identifier = (pointer_expression "&DAT_00386c08" & identifier)) ;) (while_statement "while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" while (parenthesized_expression "(((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0)))" ( (parenthesized_expression "((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))" ( (binary_expression "(*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0)" (parenthesized_expression "(*psVar4 != sVar1 || (psVar4[1] != param_3))" ( (binary_expression "*psVar4 != sVar1 || (psVar4[1] != param_3)" (binary_expression "*psVar4 != sVar1" (pointer_expression "*psVar4" * identifier) != identifier) || (parenthesized_expression "(psVar4[1] != param_3)" ( (binary_expression "psVar4[1] != param_3" (subscript_expression "psVar4[1]" identifier [ number_literal ]) != identifier) ))) )) || (parenthesized_expression "(iVar2 = strcmp(param_2,__s2), iVar2 != 0)" ( (comma_expression "iVar2 = strcmp(param_2,__s2), iVar2 != 0" (assignment_expression "iVar2 = strcmp(param_2,__s2)" identifier = (call_expression "strcmp(param_2,__s2)" identifier (argument_list "(param_2,__s2)" ( identifier , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) )) (compound_statement "{\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" { (expression_statement "__s2 = (char *)psVar4[3];" (assignment_expression "__s2 = (char *)psVar4[3]" identifier = (cast_expression "(char *)psVar4[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "psVar4[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "psVar4 = psVar4 + 4;" (assignment_expression "psVar4 = psVar4 + 4" identifier = (binary_expression "psVar4 + 4" identifier + number_literal)) ;) (if_statement "if (__s2 == (char *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "*param_1 = 0x31;" (assignment_expression "*param_1 = 0x31" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;" (assignment_expression "param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "&PTR_DAT_00386c00 + iVar3 * 4" (pointer_expression "&PTR_DAT_00386c00" & identifier) + (binary_expression "iVar3 * 4" identifier * number_literal))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) != IDENT) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_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 IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)\n\n{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_001e1a90(undefined4 *param_1,char *param_2,size_t param_3)" (identifier "FUN_001e1a90") (parameter_list "(undefined4 *param_1,char *param_2,size_t param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  char *__s2;\n  int iVar2;\n  int iVar3;\n  size_t *psVar4;\n  \n  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "size_t *psVar4;" (primitive_type "size_t") (pointer_declarator "*psVar4" (* "*") (identifier "psVar4")) (; ";")) (if_statement "if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }" (if "if") (parenthesized_expression "(((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0))" (( "(") (binary_expression "((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&\n     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)" (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0))" (( "(") (binary_expression "(param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)" (( "(") (comma_expression "sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (, ",") (binary_expression "PTR_DAT_00386c04 != (undefined *)0x0" (identifier "PTR_DAT_00386c04") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    iVar3 = 0;\n    __s2 = PTR_DAT_00386c04;\n    psVar4 = &DAT_00386c08;\n    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }\n    *param_1 = 0x31;\n    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;\n    param_1[1] = 0;\n    return 1;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s2 = PTR_DAT_00386c04;" (assignment_expression "__s2 = PTR_DAT_00386c04" (identifier "__s2") (= "=") (identifier "PTR_DAT_00386c04")) (; ";")) (expression_statement "psVar4 = &DAT_00386c08;" (assignment_expression "psVar4 = &DAT_00386c08" (identifier "psVar4") (= "=") (pointer_expression "&DAT_00386c08" (& "&") (identifier "DAT_00386c08"))) (; ";")) (while_statement "while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" (while "while") (parenthesized_expression "(((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0)))" (( "(") (parenthesized_expression "((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))" (( "(") (binary_expression "(*psVar4 != sVar1 || (psVar4[1] != param_3)) ||\n           (iVar2 = strcmp(param_2,__s2), iVar2 != 0)" (parenthesized_expression "(*psVar4 != sVar1 || (psVar4[1] != param_3))" (( "(") (binary_expression "*psVar4 != sVar1 || (psVar4[1] != param_3)" (binary_expression "*psVar4 != sVar1" (pointer_expression "*psVar4" (* "*") (identifier "psVar4")) (!= "!=") (identifier "sVar1")) (|| "||") (parenthesized_expression "(psVar4[1] != param_3)" (( "(") (binary_expression "psVar4[1] != param_3" (subscript_expression "psVar4[1]" (identifier "psVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (identifier "param_3")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = strcmp(param_2,__s2), iVar2 != 0)" (( "(") (comma_expression "iVar2 = strcmp(param_2,__s2), iVar2 != 0" (assignment_expression "iVar2 = strcmp(param_2,__s2)" (identifier "iVar2") (= "=") (call_expression "strcmp(param_2,__s2)" (identifier "strcmp") (argument_list "(param_2,__s2)" (( "(") (identifier "param_2") (, ",") (identifier "__s2") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) () ")")) (compound_statement "{\n      __s2 = (char *)psVar4[3];\n      iVar3 = iVar3 + 1;\n      psVar4 = psVar4 + 4;\n      if (__s2 == (char *)0x0) {\n        return 0;\n      }\n    }" ({ "{") (expression_statement "__s2 = (char *)psVar4[3];" (assignment_expression "__s2 = (char *)psVar4[3]" (identifier "__s2") (= "=") (cast_expression "(char *)psVar4[3]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "psVar4[3]" (identifier "psVar4") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "psVar4 = psVar4 + 4;" (assignment_expression "psVar4 = psVar4 + 4" (identifier "psVar4") (= "=") (binary_expression "psVar4 + 4" (identifier "psVar4") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (__s2 == (char *)0x0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(__s2 == (char *)0x0)" (( "(") (binary_expression "__s2 == (char *)0x0" (identifier "__s2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = 0x31;" (assignment_expression "*param_1 = 0x31" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x31")) (; ";")) (expression_statement "param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;" (assignment_expression "param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "&PTR_DAT_00386c00 + iVar3 * 4" (pointer_expression "&PTR_DAT_00386c00" (& "&") (identifier "PTR_DAT_00386c00")) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4")))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *var_1,char *var_2,int var_6)

{
  size_t var_5;
  char *var_11;
  int var_8;
  int var_9;
  size_t *var_10;
  
  if (((var_1 != (type_1 *)0x0) && (var_2 != (char *)0x0)) &&
     (var_5 = var_3(var_2), var_4._4_4_ != 0)) {
    var_9 = 0;
    var_11 = (char *)var_4._4_4_;
    var_10 = (size_t *)(var_4 + 8);
    while (((*var_10 != var_5 || (var_10[1] != var_6)) || (var_8 = var_7(var_2,var_11), var_8 != 0)))
    {
      var_11 = (char *)var_10[3];
      var_9 = var_9 + 1;
      var_10 = var_10 + 4;
      if (var_11 == (char *)0x0) {
        return 0;
      }
    }
    var_1->type = DEMANGLE_COMPONENT_OPERATOR;
    (var_1->u).s_name.s = var_4 + var_9 * 0x10;
    var_1->d_printing = 0;
    return 1;
  }
  return 0;
}


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

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

undefined4 MASKED(undefined4 *param_1,char *param_2,size_t param_3)

{
  size_t sVar1;
  char *__s2;
  int iVar2;
  int iVar3;
  size_t *psVar4;
  
  if (((param_1 != (undefined4 *)0x0) && (param_2 != (char *)0x0)) &&
     (sVar1 = strlen(param_2), PTR_DAT_00386c04 != (undefined *)0x0)) {
    iVar3 = 0;
    __s2 = PTR_DAT_00386c04;
    psVar4 = &DAT_00386c08;
    while (((*psVar4 != sVar1 || (psVar4[1] != param_3)) ||
           (iVar2 = strcmp(param_2,__s2), iVar2 != 0))) {
      __s2 = (char *)psVar4[3];
      iVar3 = iVar3 + 1;
      psVar4 = psVar4 + 4;
      if (__s2 == (char *)0x0) {
        return 0;
      }
    }
    *param_1 = 0x31;
    param_1[2] = &PTR_DAT_00386c00 + iVar3 * 4;
    param_1[1] = 0;
    return 1;
  }
  return 0;
}

