
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void record_global_got_symbol(Mips_got_info<32,_false> * this,
   Mips_symbol<32> * mips_sym, Mips_relobj<32,_false> * object, uint r_type, bool dyn_reloc, bool
   for_call) */

void __thiscall
anon_unknown.dwarf_d7d43e::Mips_got_info<32,_false>::record_global_got_symbol
          (Mips_got_info<32,_false> *this,Mips_symbol<32> *mips_sym,Mips_relobj<32,_false> *object,
          uint r_type,bool dyn_reloc,bool for_call)

{
}



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

void __regparm2 FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)

{
  uint uVar1;
  undefined4 *puVar2;
  undefined1 uVar3;
  
  if (param_5 == '\0') {
    *(undefined1 *)(param_2 + 0x54) = 0;
  }
  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {
    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||
        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&
       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {
      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {
        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;
      }
      else {
        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;
      }
    }
  }
  uVar1 = param_3 & 0xffffffbf;
  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {
    uVar3 = 1;
  }
  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {
    uVar3 = 2;
  }
  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {
    uVar3 = 4;
  }
  else {
    uVar3 = 0;
    FUN_00179cd0();
  }
  if (param_4 != '\0') {
    if (*(int *)(param_2 + 0x4c) != 2) {
      return;
    }
    *(undefined4 *)(param_2 + 0x4c) = 1;
    return;
  }
  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);
  *(undefined1 *)(puVar2 + 3) = uVar3;
  puVar2[2] = param_2;
  *puVar2 = 0;
  puVar2[1] = 0xffffffff;
  *(undefined1 *)((int)puVar2 + 0xd) = 0;
  puVar2[4] = 0xffffffff;
  FUN_0017d130();
  return;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x46cbf5
SUB ESP,0x2c
CMP byte ptr [ESP + 0x48],0x0
MOV ESI,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x1c],EDX
MOV dword ptr [ESP + 0xc],ECX
JNZ 0x0017d42b
MOV byte ptr [EDX + 0x54],0x0
MOVZX EAX,byte ptr [EDX + 0x2a]
TEST AL,0x40
JNZ 0x0017d468
MOVZX EBP,byte ptr [EDX + 0x2b]
MOV ECX,EBP
SHR CL,0x4
AND ECX,0x1
TEST AL,AL
JS 0x0017d508
TEST CL,CL
JNZ 0x0017d468
MOVZX EAX,byte ptr [EDX + 0x29]
AND EAX,0x3
SUB EAX,0x1
CMP EAX,0x1
JBE 0x0017d560
OR byte ptr [EDX + 0x2a],0x40
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x40]
AND EAX,0xffffffbf
CMP EAX,0x2a
JZ 0x0017d47e
CMP dword ptr [ESP + 0x40],0xa2
JNZ 0x0017d4a0
MOV EBP,0x1
MOV EAX,ESI
TEST AL,AL
JZ 0x0017d4be
MOV EAX,dword ptr [ESP + 0x1c]
CMP dword ptr [EAX + 0x4c],0x2
JZ 0x0017d530
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [ESP + 0x40],0xa3
JZ 0x0017d4b3
CMP EAX,0x2b
JNZ 0x0017d540
MOV EAX,ESI
MOV EBP,0x2
TEST AL,AL
JNZ 0x0017d489
SUB ESP,0xc
PUSH 0x14
CALL 0x003ac4d0
MOV EDX,dword ptr [ESP + 0x2c]
MOV EBX,EBP
ADD ESP,0x10
MOV byte ptr [EAX + 0xc],BL
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0x8],EDX
MOV EDX,EAX
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0xffffffff
MOV byte ptr [EAX + 0xd],0x0
MOV dword ptr [EAX + 0x10],0xffffffff
MOV EAX,EDI
CALL 0x0017d130
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
AND EBP,0x1
JZ 0x0017d447
MOVZX EAX,byte ptr [EDX + 0x29]
AND EAX,0x3
JZ 0x0017d468
CMP AL,0x3
JNZ 0x0017d447
JMP 0x0017d468
MOV dword ptr [EAX + 0x4c],0x1
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [ESP + 0x40],0xa6
JZ 0x0017d54f
CMP EAX,0x2e
JNZ 0x0017d570
MOV EBP,0x4
JMP 0x0017d483
OR byte ptr [EDX + 0x2b],0x10
JMP 0x0017d468
LEA EAX,[ESP + 0x10]
LEA ECX,[ESP + 0x1c]
XOR EBP,EBP
LEA EDX,[EDI + 0x18]
CALL 0x00179cd0
JMP 0x0017d483
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm2 FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}\n\n" comment (function_definition "void __regparm2 FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) , (parameter_declaration "char param_5" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (if_statement "if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }" if (parenthesized_expression "(param_5 == '\0')" ( (binary_expression "param_5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }" { (expression_statement "*(undefined1 *)(param_2 + 0x54) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x54) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x54)" * (cast_expression "(undefined1 *)(param_2 + 0x54)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x54)" ( (binary_expression "param_2 + 0x54" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_2 + 0x2a) & 0x40) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x2a) & 0x40) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2a) & 0x40)" ( (binary_expression "*(byte *)(param_2 + 0x2a) & 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }" { (if_statement "if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }" if (parenthesized_expression "((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0))" ( (binary_expression "(((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)" (parenthesized_expression "(((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3))))" ( (binary_expression "((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))" (parenthesized_expression "((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0))" ( (binary_expression "(-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)" (parenthesized_expression "(-1 < (char)*(byte *)(param_2 + 0x2a))" ( (binary_expression "-1 < (char)*(byte *)(param_2 + 0x2a)" number_literal < (cast_expression "(char)*(byte *)(param_2 + 0x2a)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))))) )) || (parenthesized_expression "((*(byte *)(param_2 + 0x2b) & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x2b) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2b) & 1)" ( (binary_expression "*(byte *)(param_2 + 0x2b) & 1" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "(((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))" ( (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3))" ( (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)" (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" ( (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" * (cast_expression "(byte *)(param_2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x29)" ( (binary_expression "param_2 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) && (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) != 3)" ( (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 3" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" ( (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" * (cast_expression "(byte *)(param_2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x29)" ( (binary_expression "param_2 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) ))) )) && (parenthesized_expression "((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2b) >> 4 & 1)" ( (binary_expression "*(byte *)(param_2 + 0x2b) >> 4 & 1" (binary_expression "*(byte *)(param_2 + 0x2b) >> 4" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) >> number_literal) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }" { (if_statement "if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" if (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) - 1 < 2)" ( (binary_expression "(*(byte *)(param_2 + 0x29) & 3) - 1 < 2" (binary_expression "(*(byte *)(param_2 + 0x29) & 3) - 1" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" ( (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" * (cast_expression "(byte *)(param_2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x29)" ( (binary_expression "param_2 + 0x29" identifier + number_literal) )))) & number_literal) )) - number_literal) < number_literal) )) (compound_statement "{\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }" { (expression_statement "*(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;" (assignment_expression "*(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x2b) | 0x10" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) | number_literal)) ;) }) (else_clause "else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" else (compound_statement "{\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" { (expression_statement "*(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;" (assignment_expression "*(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x2a) | 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))) | number_literal)) ;) }))) })) })) (expression_statement "uVar1 = param_3 & 0xffffffbf;" (assignment_expression "uVar1 = param_3 & 0xffffffbf" identifier = (binary_expression "param_3 & 0xffffffbf" identifier & number_literal)) ;) (if_statement "if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" if (parenthesized_expression "((uVar1 == 0x2a) || (param_3 == 0xa2))" ( (binary_expression "(uVar1 == 0x2a) || (param_3 == 0xa2)" (parenthesized_expression "(uVar1 == 0x2a)" ( (binary_expression "uVar1 == 0x2a" identifier == number_literal) )) || (parenthesized_expression "(param_3 == 0xa2)" ( (binary_expression "param_3 == 0xa2" identifier == number_literal) ))) )) (compound_statement "{\n    uVar3 = 1;\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" else (if_statement "if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" if (parenthesized_expression "((param_3 == 0xa3) || (uVar1 == 0x2b))" ( (binary_expression "(param_3 == 0xa3) || (uVar1 == 0x2b)" (parenthesized_expression "(param_3 == 0xa3)" ( (binary_expression "param_3 == 0xa3" identifier == number_literal) )) || (parenthesized_expression "(uVar1 == 0x2b)" ( (binary_expression "uVar1 == 0x2b" identifier == number_literal) ))) )) (compound_statement "{\n    uVar3 = 2;\n  }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }) (else_clause "else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" else (if_statement "if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" if (parenthesized_expression "((param_3 == 0xa6) || (uVar1 == 0x2e))" ( (binary_expression "(param_3 == 0xa6) || (uVar1 == 0x2e)" (parenthesized_expression "(param_3 == 0xa6)" ( (binary_expression "param_3 == 0xa6" identifier == number_literal) )) || (parenthesized_expression "(uVar1 == 0x2e)" ( (binary_expression "uVar1 == 0x2e" identifier == number_literal) ))) )) (compound_statement "{\n    uVar3 = 4;\n  }" { (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" else (compound_statement "{\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_00179cd0();" (call_expression "FUN_00179cd0()" identifier (argument_list "()" ( ))) ;) }))))))) (if_statement "if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }" { (if_statement "if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x4c) != 2)" ( (binary_expression "*(int *)(param_2 + 0x4c) != 2" (pointer_expression "*(int *)(param_2 + 0x4c)" * (cast_expression "(int *)(param_2 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x4c) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0x4c) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0x4c)" * (cast_expression "(undefined4 *)(param_2 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_003ac4d0(0x14);" (assignment_expression "puVar2 = (undefined4 *)FUN_003ac4d0(0x14)" identifier = (cast_expression "(undefined4 *)FUN_003ac4d0(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "*(undefined1 *)(puVar2 + 3) = uVar3;" (assignment_expression "*(undefined1 *)(puVar2 + 3) = uVar3" (pointer_expression "*(undefined1 *)(puVar2 + 3)" * (cast_expression "(undefined1 *)(puVar2 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2[2] = param_2;" (assignment_expression "puVar2[2] = param_2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0xffffffff;" (assignment_expression "puVar2[1] = 0xffffffff" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar2 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0xd)" ( (binary_expression "(int)puVar2 + 0xd" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2[4] = 0xffffffff;" (assignment_expression "puVar2[4] = 0xffffffff" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0017d130();" (call_expression "FUN_0017d130()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void record_global_got_symbol(Mips_got_info<32,_false> * this,\n   Mips_symbol<32> * mips_sym, Mips_relobj<32,_false> * object, uint r_type, bool dyn_reloc, bool\n   for_call) */\n\nvoid __thiscall\nanon_unknown.dwarf_d7d43e::Mips_got_info<32,_false>::record_global_got_symbol\n          (Mips_got_info<32,_false> *this,Mips_symbol<32> *mips_sym,Mips_relobj<32,_false> *object,\n          uint r_type,bool dyn_reloc,bool for_call)\n\n{\n}\n\n" comment comment (ERROR "void __thiscall\nanon_unknown.dwarf_d7d43e::Mips_got_info<32,_false>::record_global_got_symbol\n          (Mips_got_info<32,_false> *this,Mips_symbol<32> *mips_sym,Mips_relobj<32,_false> *object,\n          uint r_type,bool dyn_reloc,bool for_call)" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_d7d43e::" identifier . identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_false>::" identifier > : :) (function_declarator "record_global_got_symbol\n          (Mips_got_info<32,_false> *this,Mips_symbol<32> *mips_sym,Mips_relobj<32,_false> *object,\n          uint r_type,bool dyn_reloc,bool for_call)" identifier (parameter_list "(Mips_got_info<32,_false> *this,Mips_symbol<32> *mips_sym,Mips_relobj<32,_false> *object,\n          uint r_type,bool dyn_reloc,bool for_call)" ( (parameter_declaration "Mips_got_info" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Mips_symbol<32> *mips_sym" type_identifier (ERROR "<32>" < number_literal >) (pointer_declarator "*mips_sym" * identifier)) , (parameter_declaration "Mips_relobj" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false> *object" type_identifier (ERROR ">" >) (pointer_declarator "*object" * identifier)) , (parameter_declaration "uint r_type" type_identifier identifier) , (parameter_declaration "bool dyn_reloc" primitive_type identifier) , (parameter_declaration "bool for_call" primitive_type identifier) )))) (compound_statement "{\n}" { }))
(translation_unit "void __regparm2 FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}\n\n" (function_definition "void __regparm2 FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) , (parameter_declaration "char param_5" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (if_statement "if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }" if (parenthesized_expression "(param_5 == '\0')" ( (binary_expression "param_5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }" { (expression_statement "*(undefined1 *)(param_2 + 0x54) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x54) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x54)" * (cast_expression "(undefined1 *)(param_2 + 0x54)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x54)" ( (binary_expression "param_2 + 0x54" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_2 + 0x2a) & 0x40) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x2a) & 0x40) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2a) & 0x40)" ( (binary_expression "*(byte *)(param_2 + 0x2a) & 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }" { (if_statement "if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }" if (parenthesized_expression "((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0))" ( (binary_expression "(((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)" (parenthesized_expression "(((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3))))" ( (binary_expression "((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))" (parenthesized_expression "((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0))" ( (binary_expression "(-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)" (parenthesized_expression "(-1 < (char)*(byte *)(param_2 + 0x2a))" ( (binary_expression "-1 < (char)*(byte *)(param_2 + 0x2a)" number_literal < (cast_expression "(char)*(byte *)(param_2 + 0x2a)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))))) )) || (parenthesized_expression "((*(byte *)(param_2 + 0x2b) & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x2b) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2b) & 1)" ( (binary_expression "*(byte *)(param_2 + 0x2b) & 1" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "(((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))" ( (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3))" ( (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)" (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" ( (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" * (cast_expression "(byte *)(param_2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x29)" ( (binary_expression "param_2 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) && (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) != 3)" ( (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 3" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" ( (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" * (cast_expression "(byte *)(param_2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x29)" ( (binary_expression "param_2 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) ))) )) && (parenthesized_expression "((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2b) >> 4 & 1)" ( (binary_expression "*(byte *)(param_2 + 0x2b) >> 4 & 1" (binary_expression "*(byte *)(param_2 + 0x2b) >> 4" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) >> number_literal) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }" { (if_statement "if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" if (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) - 1 < 2)" ( (binary_expression "(*(byte *)(param_2 + 0x29) & 3) - 1 < 2" (binary_expression "(*(byte *)(param_2 + 0x29) & 3) - 1" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" ( (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" * (cast_expression "(byte *)(param_2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x29)" ( (binary_expression "param_2 + 0x29" identifier + number_literal) )))) & number_literal) )) - number_literal) < number_literal) )) (compound_statement "{\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }" { (expression_statement "*(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;" (assignment_expression "*(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x2b) | 0x10" (pointer_expression "*(byte *)(param_2 + 0x2b)" * (cast_expression "(byte *)(param_2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2b)" ( (binary_expression "param_2 + 0x2b" identifier + number_literal) )))) | number_literal)) ;) }) (else_clause "else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" else (compound_statement "{\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" { (expression_statement "*(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;" (assignment_expression "*(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x2a) | 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" * (cast_expression "(byte *)(param_2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))) | number_literal)) ;) }))) })) })) (expression_statement "uVar1 = param_3 & 0xffffffbf;" (assignment_expression "uVar1 = param_3 & 0xffffffbf" identifier = (binary_expression "param_3 & 0xffffffbf" identifier & number_literal)) ;) (if_statement "if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" if (parenthesized_expression "((uVar1 == 0x2a) || (param_3 == 0xa2))" ( (binary_expression "(uVar1 == 0x2a) || (param_3 == 0xa2)" (parenthesized_expression "(uVar1 == 0x2a)" ( (binary_expression "uVar1 == 0x2a" identifier == number_literal) )) || (parenthesized_expression "(param_3 == 0xa2)" ( (binary_expression "param_3 == 0xa2" identifier == number_literal) ))) )) (compound_statement "{\n    uVar3 = 1;\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" else (if_statement "if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" if (parenthesized_expression "((param_3 == 0xa3) || (uVar1 == 0x2b))" ( (binary_expression "(param_3 == 0xa3) || (uVar1 == 0x2b)" (parenthesized_expression "(param_3 == 0xa3)" ( (binary_expression "param_3 == 0xa3" identifier == number_literal) )) || (parenthesized_expression "(uVar1 == 0x2b)" ( (binary_expression "uVar1 == 0x2b" identifier == number_literal) ))) )) (compound_statement "{\n    uVar3 = 2;\n  }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }) (else_clause "else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" else (if_statement "if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" if (parenthesized_expression "((param_3 == 0xa6) || (uVar1 == 0x2e))" ( (binary_expression "(param_3 == 0xa6) || (uVar1 == 0x2e)" (parenthesized_expression "(param_3 == 0xa6)" ( (binary_expression "param_3 == 0xa6" identifier == number_literal) )) || (parenthesized_expression "(uVar1 == 0x2e)" ( (binary_expression "uVar1 == 0x2e" identifier == number_literal) ))) )) (compound_statement "{\n    uVar3 = 4;\n  }" { (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" else (compound_statement "{\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_00179cd0();" (call_expression "FUN_00179cd0()" identifier (argument_list "()" ( ))) ;) }))))))) (if_statement "if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }" { (if_statement "if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x4c) != 2)" ( (binary_expression "*(int *)(param_2 + 0x4c) != 2" (pointer_expression "*(int *)(param_2 + 0x4c)" * (cast_expression "(int *)(param_2 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x4c) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0x4c) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0x4c)" * (cast_expression "(undefined4 *)(param_2 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_003ac4d0(0x14);" (assignment_expression "puVar2 = (undefined4 *)FUN_003ac4d0(0x14)" identifier = (cast_expression "(undefined4 *)FUN_003ac4d0(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "*(undefined1 *)(puVar2 + 3) = uVar3;" (assignment_expression "*(undefined1 *)(puVar2 + 3) = uVar3" (pointer_expression "*(undefined1 *)(puVar2 + 3)" * (cast_expression "(undefined1 *)(puVar2 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2[2] = param_2;" (assignment_expression "puVar2[2] = param_2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0xffffffff;" (assignment_expression "puVar2[1] = 0xffffffff" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar2 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0xd)" ( (binary_expression "(int)puVar2 + 0xd" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2[4] = 0xffffffff;" (assignment_expression "puVar2[4] = 0xffffffff" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0017d130();" (call_expression "FUN_0017d130()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT) )) == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) }))) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2 FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0017d400(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)" (identifier "FUN_0017d400") (parameter_list "(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined1 uVar3;\n  \n  if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }\n  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }\n  uVar1 = param_3 & 0xffffffbf;\n  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }\n  if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);\n  *(undefined1 *)(puVar2 + 3) = uVar3;\n  puVar2[2] = param_2;\n  *puVar2 = 0;\n  puVar2[1] = 0xffffffff;\n  *(undefined1 *)((int)puVar2 + 0xd) = 0;\n  puVar2[4] = 0xffffffff;\n  FUN_0017d130();\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined1 uVar3;" (type_identifier "undefined1") (identifier "uVar3") (; ";")) (if_statement "if (param_5 == '\0') {\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }" (if "if") (parenthesized_expression "(param_5 == '\0')" (( "(") (binary_expression "param_5 == '\0'" (identifier "param_5") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined1 *)(param_2 + 0x54) = 0;\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 0x54) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x54) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x54)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x54)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x54)" (( "(") (binary_expression "param_2 + 0x54" (identifier "param_2") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 0x2a) & 0x40) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x2a) & 0x40) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2a) & 0x40)" (( "(") (binary_expression "*(byte *)(param_2 + 0x2a) & 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" (* "*") (cast_expression "(byte *)(param_2 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2a)" (( "(") (binary_expression "param_2 + 0x2a" (identifier "param_2") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }\n  }" ({ "{") (if_statement "if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }" (if "if") (parenthesized_expression "((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0))" (( "(") (binary_expression "(((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&\n       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)" (parenthesized_expression "(((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3))))" (( "(") (binary_expression "((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||\n        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))" (parenthesized_expression "((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0))" (( "(") (binary_expression "(-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)" (parenthesized_expression "(-1 < (char)*(byte *)(param_2 + 0x2a))" (( "(") (binary_expression "-1 < (char)*(byte *)(param_2 + 0x2a)" (number_literal "-1") (< "<") (cast_expression "(char)*(byte *)(param_2 + 0x2a)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*(byte *)(param_2 + 0x2a)" (* "*") (cast_expression "(byte *)(param_2 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2a)" (( "(") (binary_expression "param_2 + 0x2a" (identifier "param_2") (+ "+") (number_literal "0x2a")) () ")")))))) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(param_2 + 0x2b) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x2b) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2b) & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 0x2b) & 1" (pointer_expression "*(byte *)(param_2 + 0x2b)" (* "*") (cast_expression "(byte *)(param_2 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2b)" (( "(") (binary_expression "param_2 + 0x2b" (identifier "param_2") (+ "+") (number_literal "0x2b")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))" (( "(") (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3))" (( "(") (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)" (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" (( "(") (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" (* "*") (cast_expression "(byte *)(param_2 + 0x29)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x29)" (( "(") (binary_expression "param_2 + 0x29" (identifier "param_2") (+ "+") (number_literal "0x29")) () ")")))) (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) != 3)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x29) & 3) != 3" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" (( "(") (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" (* "*") (cast_expression "(byte *)(param_2 + 0x29)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x29)" (( "(") (binary_expression "param_2 + 0x29" (identifier "param_2") (+ "+") (number_literal "0x29")) () ")")))) (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "3")) () ")"))) () ")")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x2b) >> 4 & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 0x2b) >> 4 & 1" (binary_expression "*(byte *)(param_2 + 0x2b) >> 4" (pointer_expression "*(byte *)(param_2 + 0x2b)" (* "*") (cast_expression "(byte *)(param_2 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2b)" (( "(") (binary_expression "param_2 + 0x2b" (identifier "param_2") (+ "+") (number_literal "0x2b")) () ")")))) (>> ">>") (number_literal "4")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }\n    }" ({ "{") (if_statement "if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }\n      else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 0x29) & 3) - 1 < 2)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x29) & 3) - 1 < 2" (binary_expression "(*(byte *)(param_2 + 0x29) & 3) - 1" (parenthesized_expression "(*(byte *)(param_2 + 0x29) & 3)" (( "(") (binary_expression "*(byte *)(param_2 + 0x29) & 3" (pointer_expression "*(byte *)(param_2 + 0x29)" (* "*") (cast_expression "(byte *)(param_2 + 0x29)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x29)" (( "(") (binary_expression "param_2 + 0x29" (identifier "param_2") (+ "+") (number_literal "0x29")) () ")")))) (& "&") (number_literal "3")) () ")")) (- "-") (number_literal "1")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;\n      }" ({ "{") (expression_statement "*(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;" (assignment_expression "*(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10" (pointer_expression "*(byte *)(param_2 + 0x2b)" (* "*") (cast_expression "(byte *)(param_2 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2b)" (( "(") (binary_expression "param_2 + 0x2b" (identifier "param_2") (+ "+") (number_literal "0x2b")) () ")")))) (= "=") (binary_expression "*(byte *)(param_2 + 0x2b) | 0x10" (pointer_expression "*(byte *)(param_2 + 0x2b)" (* "*") (cast_expression "(byte *)(param_2 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2b)" (( "(") (binary_expression "param_2 + 0x2b" (identifier "param_2") (+ "+") (number_literal "0x2b")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (} "}")) (else_clause "else {\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" (else "else") (compound_statement "{\n        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;\n      }" ({ "{") (expression_statement "*(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;" (assignment_expression "*(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" (* "*") (cast_expression "(byte *)(param_2 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2a)" (( "(") (binary_expression "param_2 + 0x2a" (identifier "param_2") (+ "+") (number_literal "0x2a")) () ")")))) (= "=") (binary_expression "*(byte *)(param_2 + 0x2a) | 0x40" (pointer_expression "*(byte *)(param_2 + 0x2a)" (* "*") (cast_expression "(byte *)(param_2 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2a)" (( "(") (binary_expression "param_2 + 0x2a" (identifier "param_2") (+ "+") (number_literal "0x2a")) () ")")))) (| "|") (number_literal "0x40"))) (; ";")) (} "}")))) (} "}"))) (} "}"))) (expression_statement "uVar1 = param_3 & 0xffffffbf;" (assignment_expression "uVar1 = param_3 & 0xffffffbf" (identifier "uVar1") (= "=") (binary_expression "param_3 & 0xffffffbf" (identifier "param_3") (& "&") (number_literal "0xffffffbf"))) (; ";")) (if_statement "if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {\n    uVar3 = 1;\n  }\n  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" (if "if") (parenthesized_expression "((uVar1 == 0x2a) || (param_3 == 0xa2))" (( "(") (binary_expression "(uVar1 == 0x2a) || (param_3 == 0xa2)" (parenthesized_expression "(uVar1 == 0x2a)" (( "(") (binary_expression "uVar1 == 0x2a" (identifier "uVar1") (== "==") (number_literal "0x2a")) () ")")) (|| "||") (parenthesized_expression "(param_3 == 0xa2)" (( "(") (binary_expression "param_3 == 0xa2" (identifier "param_3") (== "==") (number_literal "0xa2")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 1;\n  }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" (else "else") (if_statement "if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {\n    uVar3 = 2;\n  }\n  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" (if "if") (parenthesized_expression "((param_3 == 0xa3) || (uVar1 == 0x2b))" (( "(") (binary_expression "(param_3 == 0xa3) || (uVar1 == 0x2b)" (parenthesized_expression "(param_3 == 0xa3)" (( "(") (binary_expression "param_3 == 0xa3" (identifier "param_3") (== "==") (number_literal "0xa3")) () ")")) (|| "||") (parenthesized_expression "(uVar1 == 0x2b)" (( "(") (binary_expression "uVar1 == 0x2b" (identifier "uVar1") (== "==") (number_literal "0x2b")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 2;\n  }" ({ "{") (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" (identifier "uVar3") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" (else "else") (if_statement "if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {\n    uVar3 = 4;\n  }\n  else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" (if "if") (parenthesized_expression "((param_3 == 0xa6) || (uVar1 == 0x2e))" (( "(") (binary_expression "(param_3 == 0xa6) || (uVar1 == 0x2e)" (parenthesized_expression "(param_3 == 0xa6)" (( "(") (binary_expression "param_3 == 0xa6" (identifier "param_3") (== "==") (number_literal "0xa6")) () ")")) (|| "||") (parenthesized_expression "(uVar1 == 0x2e)" (( "(") (binary_expression "uVar1 == 0x2e" (identifier "uVar1") (== "==") (number_literal "0x2e")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 4;\n  }" ({ "{") (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" (identifier "uVar3") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" (else "else") (compound_statement "{\n    uVar3 = 0;\n    FUN_00179cd0();\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00179cd0();" (call_expression "FUN_00179cd0()" (identifier "FUN_00179cd0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))))))) (if_statement "if (param_4 != '\0') {\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }\n    *(undefined4 *)(param_2 + 0x4c) = 1;\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_2 + 0x4c) != 2) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x4c) != 2)" (( "(") (binary_expression "*(int *)(param_2 + 0x4c) != 2" (pointer_expression "*(int *)(param_2 + 0x4c)" (* "*") (cast_expression "(int *)(param_2 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x4c)" (( "(") (binary_expression "param_2 + 0x4c" (identifier "param_2") (+ "+") (number_literal "0x4c")) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_2 + 0x4c) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 0x4c) = 1" (pointer_expression "*(undefined4 *)(param_2 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x4c)" (( "(") (binary_expression "param_2 + 0x4c" (identifier "param_2") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_003ac4d0(0x14);" (assignment_expression "puVar2 = (undefined4 *)FUN_003ac4d0(0x14)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_003ac4d0(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac4d0(0x14)" (identifier "FUN_003ac4d0") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(puVar2 + 3) = uVar3;" (assignment_expression "*(undefined1 *)(puVar2 + 3) = uVar3" (pointer_expression "*(undefined1 *)(puVar2 + 3)" (* "*") (cast_expression "(undefined1 *)(puVar2 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 3)" (( "(") (binary_expression "puVar2 + 3" (identifier "puVar2") (+ "+") (number_literal "3")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar2[2] = param_2;" (assignment_expression "puVar2[2] = param_2" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = 0xffffffff;" (assignment_expression "puVar2[1] = 0xffffffff" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0xd)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 0xd)" (( "(") (binary_expression "(int)puVar2 + 0xd" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "0xd")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[4] = 0xffffffff;" (assignment_expression "puVar2[4] = 0xffffffff" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "FUN_0017d130();" (call_expression "FUN_0017d130()" (identifier "FUN_0017d130") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void record_global_got_symbol(Mips_got_info<32,_false> * this,
   Mips_symbol<32> * mips_sym, Mips_relobj<32,_false> * object, uint r_type, bool dyn_reloc, bool
   for_call) */

void __thiscall
anon_unknown.dwarf_d7d43e::Mips_got_info<32,_false>::record_global_got_symbol
          (Mips_got_info<32,_false> *this,Mips_symbol<32> *mips_sym,Mips_relobj<32,_false> *object,
          uint r_type,bool dyn_reloc,bool for_call)

{
}


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

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

void __regparm2 MASKED(undefined4 param_1,int param_2,uint param_3,char param_4,char param_5)

{
  uint uVar1;
  undefined4 *puVar2;
  undefined1 uVar3;
  
  if (param_5 == '\0') {
    *(undefined1 *)(param_2 + 0x54) = 0;
  }
  if ((*(byte *)(param_2 + 0x2a) & 0x40) == 0) {
    if ((((-1 < (char)*(byte *)(param_2 + 0x2a)) || ((*(byte *)(param_2 + 0x2b) & 1) == 0)) ||
        (((*(byte *)(param_2 + 0x29) & 3) != 0 && ((*(byte *)(param_2 + 0x29) & 3) != 3)))) &&
       ((*(byte *)(param_2 + 0x2b) >> 4 & 1) == 0)) {
      if ((*(byte *)(param_2 + 0x29) & 3) - 1 < 2) {
        *(byte *)(param_2 + 0x2b) = *(byte *)(param_2 + 0x2b) | 0x10;
      }
      else {
        *(byte *)(param_2 + 0x2a) = *(byte *)(param_2 + 0x2a) | 0x40;
      }
    }
  }
  uVar1 = param_3 & 0xffffffbf;
  if ((uVar1 == 0x2a) || (param_3 == 0xa2)) {
    uVar3 = 1;
  }
  else if ((param_3 == 0xa3) || (uVar1 == 0x2b)) {
    uVar3 = 2;
  }
  else if ((param_3 == 0xa6) || (uVar1 == 0x2e)) {
    uVar3 = 4;
  }
  else {
    uVar3 = 0;
    FUN_00179cd0();
  }
  if (param_4 != '\0') {
    if (*(int *)(param_2 + 0x4c) != 2) {
      return;
    }
    *(undefined4 *)(param_2 + 0x4c) = 1;
    return;
  }
  puVar2 = (undefined4 *)FUN_003ac4d0(0x14);
  *(undefined1 *)(puVar2 + 3) = uVar3;
  puVar2[2] = param_2;
  *puVar2 = 0;
  puVar2[1] = 0xffffffff;
  *(undefined1 *)((int)puVar2 + 0xd) = 0;
  puVar2[4] = 0xffffffff;
  FUN_0017d130();
  return;
}

