
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void sk_tcp_set_frozen(Socket sock,int is_frozen)

{
  int iVar1;
  int iVar2;
  int rwx;
  
  if (sock[9] != (socket_function_table *)is_frozen) {
    sock[9] = (socket_function_table *)is_frozen;
    rwx = 0;
    if (sock[0x11] == (socket_function_table *)0x0) {
      if (sock[0x12] == (socket_function_table *)0x0) {
        if (sock[7] == (socket_function_table *)0x0) {
          iVar2 = 2;
          rwx = 2;
        }
        else {
          iVar2 = 2;
          rwx = 0;
          if ((is_frozen == 0) &&
             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,
             sock[0x10] == (socket_function_table *)0x0)) {
            rwx = 5;
          }
        }
        iVar1 = bufchain_size((bufchain *)(sock + 4));
        if (iVar1 != 0) {
          rwx = iVar2;
        }
      }
      else {
        rwx = 1;
      }
    }
    uxsel_set((int)sock[2],rwx,net_select_result);
  }
  return;
}



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

void FUN_0006fad0(int param_1,int param_2)

{
  int iVar1;
  char cVar2;
  char cVar3;
  
  if (*(int *)(param_1 + 0x24) != param_2) {
    *(int *)(param_1 + 0x24) = param_2;
    cVar3 = '\0';
    if (*(int *)(param_1 + 0x44) == 0) {
      if (*(int *)(param_1 + 0x48) == 0) {
        if (*(int *)(param_1 + 0x1c) == 0) {
          cVar2 = '\x02';
          cVar3 = '\x02';
        }
        else {
          cVar2 = '\x02';
          cVar3 = '\0';
          if ((param_2 == 0) &&
             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {
            cVar3 = '\x05';
          }
        }
        iVar1 = FUN_000310e0(param_1 + 0x10);
        if (iVar1 != 0) {
          cVar3 = cVar2;
        }
      }
      else {
        cVar3 = '\x01';
      }
    }
    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x55ccb
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x24]
CMP dword ptr [ESI + 0x24],EAX
JZ 0x0006fb11
MOV ECX,dword ptr [ESI + 0x44]
MOV dword ptr [ESI + 0x24],EAX
XOR EDI,EDI
TEST ECX,ECX
JZ 0x0006fb20
SUB ESP,0x4
LEA EAX,[EBX + 0xfffabc0c]
PUSH EAX
PUSH EDI
PUSH dword ptr [ESI + 0x8]
CALL 0x00073a60
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESI + 0x48]
TEST EDI,EDI
JNZ 0x0006fb50
MOV EDX,dword ptr [ESI + 0x1c]
TEST EDX,EDX
JNZ 0x0006fb60
MOV EBP,0x2
MOV EDI,0x2
SUB ESP,0xc
LEA EAX,[ESI + 0x10]
PUSH EAX
CALL 0x000310e0
ADD ESP,0x10
TEST EAX,EAX
CMOVNZ EDI,EBP
JMP 0x0006fafb
MOV EDI,0x1
JMP 0x0006fafb
MOV EBP,0x2
TEST EAX,EAX
JNZ 0x0006fb38
CMP dword ptr [ESI + 0x40],0x1
MOV EAX,dword ptr [ESI + 0x40]
SBB EBP,EBP
AND EBP,0x5
ADD EBP,0x2
TEST EAX,EAX
MOV EAX,0x5
CMOVZ EDI,EAX
JMP 0x0006fb38
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0006fad0(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0006fad0(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006fad0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x24) != param_2" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }" { (expression_statement "*(int *)(param_1 + 0x24) = param_2;" (assignment_expression "*(int *)(param_1 + 0x24) = param_2" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "cVar3 = '\0';" (assignment_expression "cVar3 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }" { (expression_statement "cVar2 = '\x02';" (assignment_expression "cVar2 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar3 = '\x02';" (assignment_expression "cVar3 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) }) (else_clause "else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" else (compound_statement "{\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" { (expression_statement "cVar2 = '\x02';" (assignment_expression "cVar2 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar3 = '\0';" (assignment_expression "cVar3 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }" if (parenthesized_expression "((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0))" ( (binary_expression "(param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) && (parenthesized_expression "(cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" ( (comma_expression "cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0" (assignment_expression "cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" identifier = (binary_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (parenthesized_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U)" ( (binary_expression "-(*(int *)(param_1 + 0x40) == 0) & 5U" (unary_expression "-(*(int *)(param_1 + 0x40) == 0)" - (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) ))) & number_literal) )) + number_literal)) , (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n            cVar3 = '\x05';\n          }" { (expression_statement "cVar3 = '\x05';" (assignment_expression "cVar3 = '\x05'" identifier = (char_literal "'\x05'" ' escape_sequence ')) ;) })) }))) (expression_statement "iVar1 = FUN_000310e0(param_1 + 0x10);" (assignment_expression "iVar1 = FUN_000310e0(param_1 + 0x10)" identifier = (call_expression "FUN_000310e0(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          cVar3 = cVar2;\n        }" { (expression_statement "cVar3 = cVar2;" (assignment_expression "cVar3 = cVar2" identifier = identifier) ;) })) }) (else_clause "else {\n        cVar3 = '\x01';\n      }" else (compound_statement "{\n        cVar3 = '\x01';\n      }" { (expression_statement "cVar3 = '\x01';" (assignment_expression "cVar3 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) })) (expression_statement "FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);" (call_expression "FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid sk_tcp_set_frozen(Socket sock,int is_frozen)\n\n{\n  int iVar1;\n  int iVar2;\n  int rwx;\n  \n  if (sock[9] != (socket_function_table *)is_frozen) {\n    sock[9] = (socket_function_table *)is_frozen;\n    rwx = 0;\n    if (sock[0x11] == (socket_function_table *)0x0) {\n      if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }\n    }\n    uxsel_set((int)sock[2],rwx,net_select_result);\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void sk_tcp_set_frozen(Socket sock,int is_frozen)\n\n{\n  int iVar1;\n  int iVar2;\n  int rwx;\n  \n  if (sock[9] != (socket_function_table *)is_frozen) {\n    sock[9] = (socket_function_table *)is_frozen;\n    rwx = 0;\n    if (sock[0x11] == (socket_function_table *)0x0) {\n      if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }\n    }\n    uxsel_set((int)sock[2],rwx,net_select_result);\n  }\n  return;\n}" primitive_type (function_declarator "sk_tcp_set_frozen(Socket sock,int is_frozen)" identifier (parameter_list "(Socket sock,int is_frozen)" ( (parameter_declaration "Socket sock" type_identifier identifier) , (parameter_declaration "int is_frozen" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int rwx;\n  \n  if (sock[9] != (socket_function_table *)is_frozen) {\n    sock[9] = (socket_function_table *)is_frozen;\n    rwx = 0;\n    if (sock[0x11] == (socket_function_table *)0x0) {\n      if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }\n    }\n    uxsel_set((int)sock[2],rwx,net_select_result);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int rwx;" primitive_type identifier ;) (if_statement "if (sock[9] != (socket_function_table *)is_frozen) {\n    sock[9] = (socket_function_table *)is_frozen;\n    rwx = 0;\n    if (sock[0x11] == (socket_function_table *)0x0) {\n      if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }\n    }\n    uxsel_set((int)sock[2],rwx,net_select_result);\n  }" if (parenthesized_expression "(sock[9] != (socket_function_table *)is_frozen)" ( (binary_expression "sock[9] != (socket_function_table *)is_frozen" (subscript_expression "sock[9]" identifier [ number_literal ]) != (cast_expression "(socket_function_table *)is_frozen" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    sock[9] = (socket_function_table *)is_frozen;\n    rwx = 0;\n    if (sock[0x11] == (socket_function_table *)0x0) {\n      if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }\n    }\n    uxsel_set((int)sock[2],rwx,net_select_result);\n  }" { (expression_statement "sock[9] = (socket_function_table *)is_frozen;" (assignment_expression "sock[9] = (socket_function_table *)is_frozen" (subscript_expression "sock[9]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)is_frozen" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "rwx = 0;" (assignment_expression "rwx = 0" identifier = number_literal) ;) (if_statement "if (sock[0x11] == (socket_function_table *)0x0) {\n      if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }\n    }" if (parenthesized_expression "(sock[0x11] == (socket_function_table *)0x0)" ( (binary_expression "sock[0x11] == (socket_function_table *)0x0" (subscript_expression "sock[0x11]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }\n    }" { (if_statement "if (sock[0x12] == (socket_function_table *)0x0) {\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }\n      else {\n        rwx = 1;\n      }" if (parenthesized_expression "(sock[0x12] == (socket_function_table *)0x0)" ( (binary_expression "sock[0x12] == (socket_function_table *)0x0" (subscript_expression "sock[0x12]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }\n        iVar1 = bufchain_size((bufchain *)(sock + 4));\n        if (iVar1 != 0) {\n          rwx = iVar2;\n        }\n      }" { (if_statement "if (sock[7] == (socket_function_table *)0x0) {\n          iVar2 = 2;\n          rwx = 2;\n        }\n        else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }" if (parenthesized_expression "(sock[7] == (socket_function_table *)0x0)" ( (binary_expression "sock[7] == (socket_function_table *)0x0" (subscript_expression "sock[7]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar2 = 2;\n          rwx = 2;\n        }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "rwx = 2;" (assignment_expression "rwx = 2" identifier = number_literal) ;) }) (else_clause "else {\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }" else (compound_statement "{\n          iVar2 = 2;\n          rwx = 0;\n          if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }\n        }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "rwx = 0;" (assignment_expression "rwx = 0" identifier = number_literal) ;) (if_statement "if ((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)) {\n            rwx = 5;\n          }" if (parenthesized_expression "((is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0))" ( (binary_expression "(is_frozen == 0) &&\n             (iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)" (parenthesized_expression "(is_frozen == 0)" ( (binary_expression "is_frozen == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0)" ( (comma_expression "iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2,\n             sock[0x10] == (socket_function_table *)0x0" (assignment_expression "iVar2 = (-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2" identifier = (binary_expression "(-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5) + 2" (parenthesized_expression "(-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5)" ( (binary_expression "-(uint)(sock[0x10] == (socket_function_table *)0x0) & 5" (unary_expression "-(uint)(sock[0x10] == (socket_function_table *)0x0)" - (call_expression "(uint)(sock[0x10] == (socket_function_table *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(sock[0x10] == (socket_function_table *)0x0)" ( (binary_expression "sock[0x10] == (socket_function_table *)0x0" (subscript_expression "sock[0x10]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) & number_literal) )) + number_literal)) , (binary_expression "sock[0x10] == (socket_function_table *)0x0" (subscript_expression "sock[0x10]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n            rwx = 5;\n          }" { (expression_statement "rwx = 5;" (assignment_expression "rwx = 5" identifier = number_literal) ;) })) }))) (expression_statement "iVar1 = bufchain_size((bufchain *)(sock + 4));" (assignment_expression "iVar1 = bufchain_size((bufchain *)(sock + 4))" identifier = (call_expression "bufchain_size((bufchain *)(sock + 4))" identifier (argument_list "((bufchain *)(sock + 4))" ( (cast_expression "(bufchain *)(sock + 4)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sock + 4)" ( (binary_expression "sock + 4" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar1 != 0) {\n          rwx = iVar2;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          rwx = iVar2;\n        }" { (expression_statement "rwx = iVar2;" (assignment_expression "rwx = iVar2" identifier = identifier) ;) })) }) (else_clause "else {\n        rwx = 1;\n      }" else (compound_statement "{\n        rwx = 1;\n      }" { (expression_statement "rwx = 1;" (assignment_expression "rwx = 1" identifier = number_literal) ;) }))) })) (expression_statement "uxsel_set((int)sock[2],rwx,net_select_result);" (call_expression "uxsel_set((int)sock[2],rwx,net_select_result)" identifier (argument_list "((int)sock[2],rwx,net_select_result)" ( (cast_expression "(int)sock[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "sock[2]" identifier [ number_literal ])) , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0006fad0(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006fad0(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006fad0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x24) != param_2" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }" { (expression_statement "*(int *)(param_1 + 0x24) = param_2;" (assignment_expression "*(int *)(param_1 + 0x24) = param_2" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "cVar3 = '\0';" (assignment_expression "cVar3 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }" { (expression_statement "cVar2 = '\x02';" (assignment_expression "cVar2 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar3 = '\x02';" (assignment_expression "cVar3 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) }) (else_clause "else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" else (compound_statement "{\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" { (expression_statement "cVar2 = '\x02';" (assignment_expression "cVar2 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar3 = '\0';" (assignment_expression "cVar3 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }" if (parenthesized_expression "((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0))" ( (binary_expression "(param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) && (parenthesized_expression "(cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" ( (comma_expression "cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0" (assignment_expression "cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" identifier = (binary_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (parenthesized_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U)" ( (binary_expression "-(*(int *)(param_1 + 0x40) == 0) & 5U" (unary_expression "-(*(int *)(param_1 + 0x40) == 0)" - (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) ))) & number_literal) )) + number_literal)) , (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n            cVar3 = '\x05';\n          }" { (expression_statement "cVar3 = '\x05';" (assignment_expression "cVar3 = '\x05'" identifier = (char_literal "'\x05'" ' escape_sequence ')) ;) })) }))) (expression_statement "iVar1 = FUN_000310e0(param_1 + 0x10);" (assignment_expression "iVar1 = FUN_000310e0(param_1 + 0x10)" identifier = (call_expression "FUN_000310e0(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          cVar3 = cVar2;\n        }" { (expression_statement "cVar3 = cVar2;" (assignment_expression "cVar3 = cVar2" identifier = identifier) ;) })) }) (else_clause "else {\n        cVar3 = '\x01';\n      }" else (compound_statement "{\n        cVar3 = '\x01';\n      }" { (expression_statement "cVar3 = '\x01';" (assignment_expression "cVar3 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) })) (expression_statement "FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);" (call_expression "FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (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 IDENT = (char_literal ' escape_sequence ')) ;) (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 { (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) & LIT) )) + LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0006fad0(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006fad0(int param_1,int param_2)" (identifier "FUN_0006fad0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char cVar3;\n  \n  if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (if_statement "if (*(int *)(param_1 + 0x24) != param_2) {\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x24) != param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) != param_2" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0x24) = param_2;\n    cVar3 = '\0';\n    if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }\n    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x24) = param_2;" (assignment_expression "*(int *)(param_1 + 0x24) = param_2" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "cVar3 = '\0';" (assignment_expression "cVar3 = '\0'" (identifier "cVar3") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }\n      else {\n        cVar3 = '\x01';\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }\n        iVar1 = FUN_000310e0(param_1 + 0x10);\n        if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }\n        else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          cVar2 = '\x02';\n          cVar3 = '\x02';\n        }" ({ "{") (expression_statement "cVar2 = '\x02';" (assignment_expression "cVar2 = '\x02'" (identifier "cVar2") (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (expression_statement "cVar3 = '\x02';" (assignment_expression "cVar3 = '\x02'" (identifier "cVar3") (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" (else "else") (compound_statement "{\n          cVar2 = '\x02';\n          cVar3 = '\0';\n          if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }\n        }" ({ "{") (expression_statement "cVar2 = '\x02';" (assignment_expression "cVar2 = '\x02'" (identifier "cVar2") (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (expression_statement "cVar3 = '\0';" (assignment_expression "cVar3 = '\0'" (identifier "cVar3") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (if_statement "if ((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {\n            cVar3 = '\x05';\n          }" (if "if") (parenthesized_expression "((param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0))" (( "(") (binary_expression "(param_2 == 0) &&\n             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (( "(") (comma_expression "cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0" (assignment_expression "cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (identifier "cVar2") (= "=") (binary_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (parenthesized_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U)" (( "(") (binary_expression "-(*(int *)(param_1 + 0x40) == 0) & 5U" (unary_expression "-(*(int *)(param_1 + 0x40) == 0)" (- "-") (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0")) () ")"))) (& "&") (number_literal "5U")) () ")")) (+ "+") (number_literal "2"))) (, ",") (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n            cVar3 = '\x05';\n          }" ({ "{") (expression_statement "cVar3 = '\x05';" (assignment_expression "cVar3 = '\x05'" (identifier "cVar3") (= "=") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar1 = FUN_000310e0(param_1 + 0x10);" (assignment_expression "iVar1 = FUN_000310e0(param_1 + 0x10)" (identifier "iVar1") (= "=") (call_expression "FUN_000310e0(param_1 + 0x10)" (identifier "FUN_000310e0") (argument_list "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n          cVar3 = cVar2;\n        }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          cVar3 = cVar2;\n        }" ({ "{") (expression_statement "cVar3 = cVar2;" (assignment_expression "cVar3 = cVar2" (identifier "cVar3") (= "=") (identifier "cVar2")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        cVar3 = '\x01';\n      }" (else "else") (compound_statement "{\n        cVar3 = '\x01';\n      }" ({ "{") (expression_statement "cVar3 = '\x01';" (assignment_expression "cVar3 = '\x01'" (identifier "cVar3") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);" (call_expression "FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0)" (identifier "FUN_00073a60") (argument_list "(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "cVar3") (, ",") (identifier "FUN_000713b0") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 var_3,int var_1)

{
  int var_4;
  int iVar2;
  int rwx;
  
  if (var_3[9] != (type_2 *)var_1) {
    var_3[9] = (type_2 *)var_1;
    rwx = 0;
    if (var_3[0x11] == (type_2 *)0x0) {
      if (var_3[0x12] == (type_2 *)0x0) {
        if (var_3[7] == (type_2 *)0x0) {
          iVar2 = 2;
          rwx = 2;
        }
        else {
          iVar2 = 2;
          rwx = 0;
          if ((var_1 == 0) &&
             (iVar2 = (-(uint)(var_3[0x10] == (type_2 *)0x0) & 5) + 2,
             var_3[0x10] == (type_2 *)0x0)) {
            rwx = 5;
          }
        }
        var_4 = var_2((type_3 *)(var_3 + 4));
        if (var_4 != 0) {
          rwx = iVar2;
        }
      }
      else {
        rwx = 1;
      }
    }
    var_5((int)var_3[2],rwx,net_select_result);
  }
  return;
}


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

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

void MASKED(int param_1,int param_2)

{
  int iVar1;
  char cVar2;
  char cVar3;
  
  if (*(int *)(param_1 + 0x24) != param_2) {
    *(int *)(param_1 + 0x24) = param_2;
    cVar3 = '\0';
    if (*(int *)(param_1 + 0x44) == 0) {
      if (*(int *)(param_1 + 0x48) == 0) {
        if (*(int *)(param_1 + 0x1c) == 0) {
          cVar2 = '\x02';
          cVar3 = '\x02';
        }
        else {
          cVar2 = '\x02';
          cVar3 = '\0';
          if ((param_2 == 0) &&
             (cVar2 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)) {
            cVar3 = '\x05';
          }
        }
        iVar1 = FUN_000310e0(param_1 + 0x10);
        if (iVar1 != 0) {
          cVar3 = cVar2;
        }
      }
      else {
        cVar3 = '\x01';
      }
    }
    FUN_00073a60(*(undefined4 *)(param_1 + 8),cVar3,FUN_000713b0);
  }
  return;
}

