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

char * command_errstr(int code)

{
  char *pcVar1;
  
  pcVar1 = "unknown command error";
  if (code < 4) {
    pcVar1 = cmd_error_table[code];
  }
  pcVar1 = (char *)dcgettext(0,pcVar1,5);
  return pcVar1;
}



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

void command_errstr(int param_1)

{
  char *pcVar1;
  
  pcVar1 = "unknown command error";
  if (param_1 < 4) {
    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];
  }
  dcgettext(0,pcVar1,5);
  return;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0xf052a
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xfffa614d]
CMP EDX,0x3
JG 0x00059af5
MOV EAX,dword ptr [EBX + EDX*0x4 + 0xffffe7a4]
SUB ESP,0x4
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x0002f380
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid command_errstr(int param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}\n\n" comment (function_definition "void command_errstr(int param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}" primitive_type (function_declarator "command_errstr(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = "unknown command error";" (assignment_expression "pcVar1 = "unknown command error"" identifier = (string_literal ""unknown command error"" " string_content ")) ;) (if_statement "if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }" if (parenthesized_expression "(param_1 < 4)" ( (binary_expression "param_1 < 4" identifier < number_literal) )) (compound_statement "{\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }" { (expression_statement "pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];" (assignment_expression "pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1]" identifier = (subscript_expression "(&PTR_s_unknown_command_error_001487a4)[param_1]" (parenthesized_expression "(&PTR_s_unknown_command_error_001487a4)" ( (pointer_expression "&PTR_s_unknown_command_error_001487a4" & identifier) )) [ identifier ])) ;) })) (expression_statement "dcgettext(0,pcVar1,5);" (call_expression "dcgettext(0,pcVar1,5)" identifier (argument_list "(0,pcVar1,5)" ( number_literal , identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * command_errstr(int code)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (code < 4) {\n    pcVar1 = cmd_error_table[code];\n  }\n  pcVar1 = (char *)dcgettext(0,pcVar1,5);\n  return pcVar1;\n}\n\n" comment (function_definition "char * command_errstr(int code)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (code < 4) {\n    pcVar1 = cmd_error_table[code];\n  }\n  pcVar1 = (char *)dcgettext(0,pcVar1,5);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* command_errstr(int code)" * (function_declarator "command_errstr(int code)" identifier (parameter_list "(int code)" ( (parameter_declaration "int code" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (code < 4) {\n    pcVar1 = cmd_error_table[code];\n  }\n  pcVar1 = (char *)dcgettext(0,pcVar1,5);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = "unknown command error";" (assignment_expression "pcVar1 = "unknown command error"" identifier = (string_literal ""unknown command error"" " string_content ")) ;) (if_statement "if (code < 4) {\n    pcVar1 = cmd_error_table[code];\n  }" if (parenthesized_expression "(code < 4)" ( (binary_expression "code < 4" identifier < number_literal) )) (compound_statement "{\n    pcVar1 = cmd_error_table[code];\n  }" { (expression_statement "pcVar1 = cmd_error_table[code];" (assignment_expression "pcVar1 = cmd_error_table[code]" identifier = (subscript_expression "cmd_error_table[code]" identifier [ identifier ])) ;) })) (expression_statement "pcVar1 = (char *)dcgettext(0,pcVar1,5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,pcVar1,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar1,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar1,5)" identifier (argument_list "(0,pcVar1,5)" ( number_literal , identifier , number_literal ))))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void command_errstr(int param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}\n\n" (function_definition "void command_errstr(int param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}" primitive_type (function_declarator "command_errstr(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = "unknown command error";" (assignment_expression "pcVar1 = "unknown command error"" identifier = (string_literal ""unknown command error"" " string_content ")) ;) (if_statement "if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }" if (parenthesized_expression "(param_1 < 4)" ( (binary_expression "param_1 < 4" identifier < number_literal) )) (compound_statement "{\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }" { (expression_statement "pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];" (assignment_expression "pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1]" identifier = (subscript_expression "(&PTR_s_unknown_command_error_001487a4)[param_1]" (parenthesized_expression "(&PTR_s_unknown_command_error_001487a4)" ( (pointer_expression "&PTR_s_unknown_command_error_001487a4" & identifier) )) [ identifier ])) ;) })) (expression_statement "dcgettext(0,pcVar1,5);" (call_expression "dcgettext(0,pcVar1,5)" identifier (argument_list "(0,pcVar1,5)" ( number_literal , identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void command_errstr(int param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}" (primitive_type "void") (function_declarator "command_errstr(int param_1)" (identifier "command_errstr") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "unknown command error";\n  if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }\n  dcgettext(0,pcVar1,5);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = "unknown command error";" (assignment_expression "pcVar1 = "unknown command error"" (identifier "pcVar1") (= "=") (string_literal ""unknown command error"" (" """) (string_content "unknown command error") (" """))) (; ";")) (if_statement "if (param_1 < 4) {\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }" (if "if") (parenthesized_expression "(param_1 < 4)" (( "(") (binary_expression "param_1 < 4" (identifier "param_1") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];\n  }" ({ "{") (expression_statement "pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];" (assignment_expression "pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1]" (identifier "pcVar1") (= "=") (subscript_expression "(&PTR_s_unknown_command_error_001487a4)[param_1]" (parenthesized_expression "(&PTR_s_unknown_command_error_001487a4)" (( "(") (pointer_expression "&PTR_s_unknown_command_error_001487a4" (& "&") (identifier "PTR_s_unknown_command_error_001487a4")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (} "}"))) (expression_statement "dcgettext(0,pcVar1,5);" (call_expression "dcgettext(0,pcVar1,5)" (identifier "dcgettext") (argument_list "(0,pcVar1,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar1") (, ",") (number_literal "5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * function_1(int var_1)

{
  char *pcVar1;
  
  pcVar1 = "unknown command error";
  if (var_1 < 4) {
    pcVar1 = cmd_error_table[var_1];
  }
  pcVar1 = (char *)var_2(0,pcVar1,5);
  return pcVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal)))) (return_statement))))

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

void MASKED(int param_1)

{
  char *pcVar1;
  
  pcVar1 = "unknown command error";
  if (param_1 < 4) {
    pcVar1 = (&PTR_s_unknown_command_error_001487a4)[param_1];
  }
  dcgettext(0,pcVar1,5);
  return;
}

