
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void logtraffic(void *handle,uchar c,int logmode)

{
  uchar local_c [12];
  
  if ((*(int *)((long)handle + 0x40) == logmode) && (0 < *(int *)((long)handle + 0x40))) {
    local_c[0] = c;
    logwrite((LogContext *)handle,local_c,1);
  }
  return;
}



void FUN_0011ea01(long param_1,undefined1 param_2,int param_3)

{
  undefined1 local_c [12];
  
  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {
    local_c[0] = param_2;
    FUN_0011e17e(param_1,local_c,1);
  }
  return;
}


SUB RSP,0x18
MOV byte ptr [RSP + 0xc],SIL
MOV EAX,dword ptr [RDI + 0x40]
CMP EAX,EDX
JNZ 0x0011ea15
TEST EAX,EAX
JG 0x0011ea1a
ADD RSP,0x18
RET
LEA RSI,[RSP + 0xc]
MOV EDX,0x1
CALL 0x0011e17e
JMP 0x0011ea15
(translation_unit "void FUN_0011ea01(long param_1,undefined1 param_2,int param_3)\n\n{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0011ea01(long param_1,undefined1 param_2,int param_3)\n\n{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0011ea01(long param_1,undefined1 param_2,int param_3)" identifier (parameter_list "(long param_1,undefined1 param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}" { (declaration "undefined1 local_c [12];" type_identifier (array_declarator "local_c [12]" identifier [ number_literal ]) ;) (if_statement "if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40)))" ( (binary_expression "(*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))" (parenthesized_expression "(*(int *)(param_1 + 0x40) == param_3)" ( (binary_expression "*(int *)(param_1 + 0x40) == param_3" (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) )))) == identifier) )) && (parenthesized_expression "(0 < *(int *)(param_1 + 0x40))" ( (binary_expression "0 < *(int *)(param_1 + 0x40)" number_literal < (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) ))))) ))) )) (compound_statement "{\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }" { (expression_statement "local_c[0] = param_2;" (assignment_expression "local_c[0] = param_2" (subscript_expression "local_c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0011e17e(param_1,local_c,1);" (call_expression "FUN_0011e17e(param_1,local_c,1)" identifier (argument_list "(param_1,local_c,1)" ( identifier , identifier , number_literal ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid logtraffic(void *handle,uchar c,int logmode)\n\n{\n  uchar local_c [12];\n  \n  if ((*(int *)((long)handle + 0x40) == logmode) && (0 < *(int *)((long)handle + 0x40))) {\n    local_c[0] = c;\n    logwrite((LogContext *)handle,local_c,1);\n  }\n  return;\n}\n\n" comment (function_definition "void logtraffic(void *handle,uchar c,int logmode)\n\n{\n  uchar local_c [12];\n  \n  if ((*(int *)((long)handle + 0x40) == logmode) && (0 < *(int *)((long)handle + 0x40))) {\n    local_c[0] = c;\n    logwrite((LogContext *)handle,local_c,1);\n  }\n  return;\n}" primitive_type (function_declarator "logtraffic(void *handle,uchar c,int logmode)" identifier (parameter_list "(void *handle,uchar c,int logmode)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar c" type_identifier identifier) , (parameter_declaration "int logmode" primitive_type identifier) ))) (compound_statement "{\n  uchar local_c [12];\n  \n  if ((*(int *)((long)handle + 0x40) == logmode) && (0 < *(int *)((long)handle + 0x40))) {\n    local_c[0] = c;\n    logwrite((LogContext *)handle,local_c,1);\n  }\n  return;\n}" { (declaration "uchar local_c [12];" type_identifier (array_declarator "local_c [12]" identifier [ number_literal ]) ;) (if_statement "if ((*(int *)((long)handle + 0x40) == logmode) && (0 < *(int *)((long)handle + 0x40))) {\n    local_c[0] = c;\n    logwrite((LogContext *)handle,local_c,1);\n  }" if (parenthesized_expression "((*(int *)((long)handle + 0x40) == logmode) && (0 < *(int *)((long)handle + 0x40)))" ( (binary_expression "(*(int *)((long)handle + 0x40) == logmode) && (0 < *(int *)((long)handle + 0x40))" (parenthesized_expression "(*(int *)((long)handle + 0x40) == logmode)" ( (binary_expression "*(int *)((long)handle + 0x40) == logmode" (pointer_expression "*(int *)((long)handle + 0x40)" * (cast_expression "(int *)((long)handle + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x40)" ( (binary_expression "(long)handle + 0x40" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == identifier) )) && (parenthesized_expression "(0 < *(int *)((long)handle + 0x40))" ( (binary_expression "0 < *(int *)((long)handle + 0x40)" number_literal < (pointer_expression "*(int *)((long)handle + 0x40)" * (cast_expression "(int *)((long)handle + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x40)" ( (binary_expression "(long)handle + 0x40" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) (compound_statement "{\n    local_c[0] = c;\n    logwrite((LogContext *)handle,local_c,1);\n  }" { (expression_statement "local_c[0] = c;" (assignment_expression "local_c[0] = c" (subscript_expression "local_c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "logwrite((LogContext *)handle,local_c,1);" (call_expression "logwrite((LogContext *)handle,local_c,1)" identifier (argument_list "((LogContext *)handle,local_c,1)" ( (cast_expression "(LogContext *)handle" ( (type_descriptor "LogContext *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0011ea01(long param_1,undefined1 param_2,int param_3)\n\n{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0011ea01(long param_1,undefined1 param_2,int param_3)\n\n{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0011ea01(long param_1,undefined1 param_2,int param_3)" identifier (parameter_list "(long param_1,undefined1 param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}" { (declaration "undefined1 local_c [12];" type_identifier (array_declarator "local_c [12]" identifier [ number_literal ]) ;) (if_statement "if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40)))" ( (binary_expression "(*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))" (parenthesized_expression "(*(int *)(param_1 + 0x40) == param_3)" ( (binary_expression "*(int *)(param_1 + 0x40) == param_3" (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) )))) == identifier) )) && (parenthesized_expression "(0 < *(int *)(param_1 + 0x40))" ( (binary_expression "0 < *(int *)(param_1 + 0x40)" number_literal < (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) ))))) ))) )) (compound_statement "{\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }" { (expression_statement "local_c[0] = param_2;" (assignment_expression "local_c[0] = param_2" (subscript_expression "local_c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0011e17e(param_1,local_c,1);" (call_expression "FUN_0011e17e(param_1,local_c,1)" identifier (argument_list "(param_1,local_c,1)" ( identifier , identifier , number_literal ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (array_declarator IDENT [ 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) )))) == IDENT) )) && (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0011ea01(long param_1,undefined1 param_2,int param_3)\n\n{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0011ea01(long param_1,undefined1 param_2,int param_3)" (identifier "FUN_0011ea01") (parameter_list "(long param_1,undefined1 param_2,int param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 local_c [12];\n  \n  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }\n  return;\n}" ({ "{") (declaration "undefined1 local_c [12];" (type_identifier "undefined1") (array_declarator "local_c [12]" (identifier "local_c") ([ "[") (number_literal "12") (] "]")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40)))" (( "(") (binary_expression "(*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))" (parenthesized_expression "(*(int *)(param_1 + 0x40) == param_3)" (( "(") (binary_expression "*(int *)(param_1 + 0x40) == param_3" (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")) () ")")))) (== "==") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(0 < *(int *)(param_1 + 0x40))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x40)" (number_literal "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")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    local_c[0] = param_2;\n    FUN_0011e17e(param_1,local_c,1);\n  }" ({ "{") (expression_statement "local_c[0] = param_2;" (assignment_expression "local_c[0] = param_2" (subscript_expression "local_c[0]" (identifier "local_c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_0011e17e(param_1,local_c,1);" (call_expression "FUN_0011e17e(param_1,local_c,1)" (identifier "FUN_0011e17e") (argument_list "(param_1,local_c,1)" (( "(") (identifier "param_1") (, ",") (identifier "local_c") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(void *handle,type_1 c,int var_1)

{
  type_1 local_c [12];
  
  if ((*(int *)((long)handle + 0x40) == var_1) && (0 < *(int *)((long)handle + 0x40))) {
    local_c[0] = c;
    var_2((type_2 *)handle,local_c,1);
  }
  return;
}


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

void MASKED(long param_1,undefined1 param_2,int param_3)

{
  undefined1 local_c [12];
  
  if ((*(int *)(param_1 + 0x40) == param_3) && (0 < *(int *)(param_1 + 0x40))) {
    local_c[0] = param_2;
    FUN_0011e17e(param_1,local_c,1);
  }
  return;
}

