
int get_product_string(char *buf,size_t size,u_int16_t vid,u_int16_t pid)

{
  int iVar1;
  char *pcVar2;
  
  if (size == 0) {
    return 0;
  }
  *buf = '\0';
  pcVar2 = names_product(vid,pid);
  iVar1 = 0;
  if (pcVar2 != (char *)0x0) {
    iVar1 = snprintf(buf,size,"%s");
  }
  return iVar1;
}



int FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)

{
  int iVar1;
  long lVar2;
  
  if (param_2 == 0) {
    return 0;
  }
  *param_1 = '\0';
  lVar2 = FUN_0011a512(param_3,param_4);
  iVar1 = 0;
  if (lVar2 != 0) {
    iVar1 = snprintf(param_1,param_2,"%s");
  }
  return iVar1;
}


MOV EAX,0x0
TEST RSI,RSI
JNZ 0x0011a763
RET
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RSI
MOV RBP,RDI
MOV byte ptr [RDI],0x0
MOVZX ESI,CX
MOVZX EDI,DX
CALL 0x0011a512
MOV RCX,RAX
MOV EAX,0x0
TEST RCX,RCX
JZ 0x0011a79c
LEA RDX,[0x11cf11]
MOV RSI,RBX
MOV RDI,RBP
CALL 0x00110150
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "int FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)" identifier (parameter_list "(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "undefined2 param_3" type_identifier identifier) , (parameter_declaration "undefined2 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "lVar2 = FUN_0011a512(param_3,param_4);" (assignment_expression "lVar2 = FUN_0011a512(param_3,param_4)" identifier = (call_expression "FUN_0011a512(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }" { (expression_statement "iVar1 = snprintf(param_1,param_2,"%s");" (assignment_expression "iVar1 = snprintf(param_1,param_2,"%s")" identifier = (call_expression "snprintf(param_1,param_2,"%s")" identifier (argument_list "(param_1,param_2,"%s")" ( identifier , identifier , (string_literal ""%s"" " string_content ") )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int get_product_string(char *buf,size_t size,u_int16_t vid,u_int16_t pid)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (size == 0) {\n    return 0;\n  }\n  *buf = '\0';\n  pcVar2 = names_product(vid,pid);\n  iVar1 = 0;\n  if (pcVar2 != (char *)0x0) {\n    iVar1 = snprintf(buf,size,"%s");\n  }\n  return iVar1;\n}\n\n" (function_definition "int get_product_string(char *buf,size_t size,u_int16_t vid,u_int16_t pid)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (size == 0) {\n    return 0;\n  }\n  *buf = '\0';\n  pcVar2 = names_product(vid,pid);\n  iVar1 = 0;\n  if (pcVar2 != (char *)0x0) {\n    iVar1 = snprintf(buf,size,"%s");\n  }\n  return iVar1;\n}" primitive_type (function_declarator "get_product_string(char *buf,size_t size,u_int16_t vid,u_int16_t pid)" identifier (parameter_list "(char *buf,size_t size,u_int16_t vid,u_int16_t pid)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) , (parameter_declaration "u_int16_t vid" type_identifier identifier) , (parameter_declaration "u_int16_t pid" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (size == 0) {\n    return 0;\n  }\n  *buf = '\0';\n  pcVar2 = names_product(vid,pid);\n  iVar1 = 0;\n  if (pcVar2 != (char *)0x0) {\n    iVar1 = snprintf(buf,size,"%s");\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (size == 0) {\n    return 0;\n  }" if (parenthesized_expression "(size == 0)" ( (binary_expression "size == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*buf = '\0';" (assignment_expression "*buf = '\0'" (pointer_expression "*buf" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar2 = names_product(vid,pid);" (assignment_expression "pcVar2 = names_product(vid,pid)" identifier = (call_expression "names_product(vid,pid)" identifier (argument_list "(vid,pid)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    iVar1 = snprintf(buf,size,"%s");\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = snprintf(buf,size,"%s");\n  }" { (expression_statement "iVar1 = snprintf(buf,size,"%s");" (assignment_expression "iVar1 = snprintf(buf,size,"%s")" identifier = (call_expression "snprintf(buf,size,"%s")" identifier (argument_list "(buf,size,"%s")" ( identifier , identifier , (string_literal ""%s"" " string_content ") )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)" identifier (parameter_list "(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "undefined2 param_3" type_identifier identifier) , (parameter_declaration "undefined2 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "lVar2 = FUN_0011a512(param_3,param_4);" (assignment_expression "lVar2 = FUN_0011a512(param_3,param_4)" identifier = (call_expression "FUN_0011a512(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }" { (expression_statement "iVar1 = snprintf(param_1,param_2,"%s");" (assignment_expression "iVar1 = snprintf(param_1,param_2,"%s")" identifier = (call_expression "snprintf(param_1,param_2,"%s")" identifier (argument_list "(param_1,param_2,"%s")" ( identifier , identifier , (string_literal ""%s"" " string_content ") )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0011a758(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)" (identifier "FUN_0011a758") (parameter_list "(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) (, ",") (parameter_declaration "undefined2 param_3" (type_identifier "undefined2") (identifier "param_3")) (, ",") (parameter_declaration "undefined2 param_4" (type_identifier "undefined2") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  *param_1 = '\0';\n  lVar2 = FUN_0011a512(param_3,param_4);\n  iVar1 = 0;\n  if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "lVar2 = FUN_0011a512(param_3,param_4);" (assignment_expression "lVar2 = FUN_0011a512(param_3,param_4)" (identifier "lVar2") (= "=") (call_expression "FUN_0011a512(param_3,param_4)" (identifier "FUN_0011a512") (argument_list "(param_3,param_4)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (lVar2 != 0) {\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = snprintf(param_1,param_2,"%s");\n  }" ({ "{") (expression_statement "iVar1 = snprintf(param_1,param_2,"%s");" (assignment_expression "iVar1 = snprintf(param_1,param_2,"%s")" (identifier "iVar1") (= "=") (call_expression "snprintf(param_1,param_2,"%s")" (identifier "snprintf") (argument_list "(param_1,param_2,"%s")" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) () ")")))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int function_1(char *buf,size_t var_1,type_1 vid,type_1 pid)

{
  int iVar1;
  char *var_3;
  
  if (var_1 == 0) {
    return 0;
  }
  *buf = '\0';
  var_3 = var_2(vid,pid);
  iVar1 = 0;
  if (var_3 != (char *)0x0) {
    iVar1 = var_4(buf,var_1,"%s");
  }
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (string_literal (string_content)))))))) (return_statement (identifier)))))

int MASKED(char *param_1,size_t param_2,undefined2 param_3,undefined2 param_4)

{
  int iVar1;
  long lVar2;
  
  if (param_2 == 0) {
    return 0;
  }
  *param_1 = '\0';
  lVar2 = FUN_0011a512(param_3,param_4);
  iVar1 = 0;
  if (lVar2 != 0) {
    iVar1 = snprintf(param_1,param_2,"%s");
  }
  return iVar1;
}

