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

SHELL_VAR * assign_seconds(SHELL_VAR *self,char *value,arrayind_t unused,char *key)

{
  int iVar1;
  
  iVar1 = legal_number(value,&seconds_value_assigned);
  if (iVar1 == 0) {
    seconds_value_assigned._0_4_ = 0;
    seconds_value_assigned._4_4_ = 0;
  }
  shell_start_time = time((time_t *)0x0);
  return self;
}



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

undefined4 FUN_00050b30(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = legal_number(param_2,&DAT_0014fd40);
  if (iVar1 == 0) {
    DAT_0014fd40 = 0;
    DAT_0014fd44 = 0;
  }
  shell_start_time = time((time_t *)0x0);
  return param_1;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0xf94ca
SUB ESP,0x10
LEA EAX,[EBX + 0x5d40]
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x00041140
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00050b6a
MOV dword ptr [EBX + 0x5d40],0x0
MOV dword ptr [EBX + 0x5d44],0x0
SUB ESP,0xc
PUSH 0x0
CALL 0x0002f2d0
LEA EDX,[EBX + 0x8c2c]
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00050b30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}\n\n" comment (function_definition "undefined4 FUN_00050b30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}" type_identifier (function_declarator "FUN_00050b30(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = legal_number(param_2,&DAT_0014fd40);" (assignment_expression "iVar1 = legal_number(param_2,&DAT_0014fd40)" identifier = (call_expression "legal_number(param_2,&DAT_0014fd40)" identifier (argument_list "(param_2,&DAT_0014fd40)" ( identifier , (pointer_expression "&DAT_0014fd40" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }" { (expression_statement "DAT_0014fd40 = 0;" (assignment_expression "DAT_0014fd40 = 0" identifier = number_literal) ;) (expression_statement "DAT_0014fd44 = 0;" (assignment_expression "DAT_0014fd44 = 0" identifier = number_literal) ;) })) (expression_statement "shell_start_time = time((time_t *)0x0);" (assignment_expression "shell_start_time = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nSHELL_VAR * assign_seconds(SHELL_VAR *self,char *value,arrayind_t unused,char *key)\n\n{\n  int iVar1;\n  \n  iVar1 = legal_number(value,&seconds_value_assigned);\n  if (iVar1 == 0) {\n    seconds_value_assigned._0_4_ = 0;\n    seconds_value_assigned._4_4_ = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return self;\n}\n\n" comment comment (function_definition "SHELL_VAR * assign_seconds(SHELL_VAR *self,char *value,arrayind_t unused,char *key)\n\n{\n  int iVar1;\n  \n  iVar1 = legal_number(value,&seconds_value_assigned);\n  if (iVar1 == 0) {\n    seconds_value_assigned._0_4_ = 0;\n    seconds_value_assigned._4_4_ = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return self;\n}" type_identifier (pointer_declarator "* assign_seconds(SHELL_VAR *self,char *value,arrayind_t unused,char *key)" * (function_declarator "assign_seconds(SHELL_VAR *self,char *value,arrayind_t unused,char *key)" identifier (parameter_list "(SHELL_VAR *self,char *value,arrayind_t unused,char *key)" ( (parameter_declaration "SHELL_VAR *self" type_identifier (pointer_declarator "*self" * identifier)) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) , (parameter_declaration "arrayind_t unused" type_identifier identifier) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = legal_number(value,&seconds_value_assigned);\n  if (iVar1 == 0) {\n    seconds_value_assigned._0_4_ = 0;\n    seconds_value_assigned._4_4_ = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return self;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = legal_number(value,&seconds_value_assigned);" (assignment_expression "iVar1 = legal_number(value,&seconds_value_assigned)" identifier = (call_expression "legal_number(value,&seconds_value_assigned)" identifier (argument_list "(value,&seconds_value_assigned)" ( identifier , (pointer_expression "&seconds_value_assigned" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    seconds_value_assigned._0_4_ = 0;\n    seconds_value_assigned._4_4_ = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    seconds_value_assigned._0_4_ = 0;\n    seconds_value_assigned._4_4_ = 0;\n  }" { (expression_statement "seconds_value_assigned._0_4_ = 0;" (assignment_expression "seconds_value_assigned._0_4_ = 0" (field_expression "seconds_value_assigned._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "seconds_value_assigned._4_4_ = 0;" (assignment_expression "seconds_value_assigned._4_4_ = 0" (field_expression "seconds_value_assigned._4_4_" identifier . field_identifier) = number_literal) ;) })) (expression_statement "shell_start_time = time((time_t *)0x0);" (assignment_expression "shell_start_time = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (return_statement "return self;" return identifier ;) })))
(translation_unit "undefined4 FUN_00050b30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}\n\n" (function_definition "undefined4 FUN_00050b30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}" type_identifier (function_declarator "FUN_00050b30(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = legal_number(param_2,&DAT_0014fd40);" (assignment_expression "iVar1 = legal_number(param_2,&DAT_0014fd40)" identifier = (call_expression "legal_number(param_2,&DAT_0014fd40)" identifier (argument_list "(param_2,&DAT_0014fd40)" ( identifier , (pointer_expression "&DAT_0014fd40" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }" { (expression_statement "DAT_0014fd40 = 0;" (assignment_expression "DAT_0014fd40 = 0" identifier = number_literal) ;) (expression_statement "DAT_0014fd44 = 0;" (assignment_expression "DAT_0014fd44 = 0" identifier = number_literal) ;) })) (expression_statement "shell_start_time = time((time_t *)0x0);" (assignment_expression "shell_start_time = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00050b30(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00050b30(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00050b30") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = legal_number(param_2,&DAT_0014fd40);\n  if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }\n  shell_start_time = time((time_t *)0x0);\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = legal_number(param_2,&DAT_0014fd40);" (assignment_expression "iVar1 = legal_number(param_2,&DAT_0014fd40)" (identifier "iVar1") (= "=") (call_expression "legal_number(param_2,&DAT_0014fd40)" (identifier "legal_number") (argument_list "(param_2,&DAT_0014fd40)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&DAT_0014fd40" (& "&") (identifier "DAT_0014fd40")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0014fd40 = 0;\n    DAT_0014fd44 = 0;\n  }" ({ "{") (expression_statement "DAT_0014fd40 = 0;" (assignment_expression "DAT_0014fd40 = 0" (identifier "DAT_0014fd40") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0014fd44 = 0;" (assignment_expression "DAT_0014fd44 = 0" (identifier "DAT_0014fd44") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "shell_start_time = time((time_t *)0x0);" (assignment_expression "shell_start_time = time((time_t *)0x0)" (identifier "shell_start_time") (= "=") (call_expression "time((time_t *)0x0)" (identifier "time") (argument_list "((time_t *)0x0)" (( "(") (cast_expression "(time_t *)0x0" (( "(") (type_descriptor "time_t *" (type_identifier "time_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")")))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *self,char *value,type_2 unused,char *key)

{
  int var_2;
  
  var_2 = var_1(value,&seconds_value_assigned);
  if (var_2 == 0) {
    seconds_value_assigned._0_4_ = 0;
    seconds_value_assigned._4_4_ = 0;
  }
  shell_start_time = var_3((type_3 *)0x0);
  return self;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (return_statement (identifier)))))

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

undefined4 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = legal_number(param_2,&DAT_0014fd40);
  if (iVar1 == 0) {
    DAT_0014fd40 = 0;
    DAT_0014fd44 = 0;
  }
  shell_start_time = time((time_t *)0x0);
  return param_1;
}

