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

tm * ltime(void)

{
  char *pcVar1;
  tm *ptVar2;
  int in_GS_OFFSET;
  tm *in_stack_00000004;
  time_t t;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  time(&t);
  if (t == -1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");
  }
  ptVar2 = localtime(&t);
  in_stack_00000004->tm_sec = ptVar2->tm_sec;
  in_stack_00000004->tm_min = ptVar2->tm_min;
  in_stack_00000004->tm_hour = ptVar2->tm_hour;
  in_stack_00000004->tm_mday = ptVar2->tm_mday;
  in_stack_00000004->tm_mon = ptVar2->tm_mon;
  in_stack_00000004->tm_year = ptVar2->tm_year;
  in_stack_00000004->tm_wday = ptVar2->tm_wday;
  in_stack_00000004->tm_yday = ptVar2->tm_yday;
  in_stack_00000004->tm_isdst = ptVar2->tm_isdst;
  pcVar1 = ptVar2->tm_zone;
  in_stack_00000004->tm_gmtoff = ptVar2->tm_gmtoff;
  in_stack_00000004->tm_zone = pcVar1;
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return in_stack_00000004;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int * FUN_00080170(int *param_1)

{
  char *pcVar1;
  tm *ptVar2;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  time(&local_14);
  if (local_14 == -1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");
  }
  ptVar2 = localtime(&local_14);
  *param_1 = ptVar2->tm_sec;
  param_1[1] = ptVar2->tm_min;
  param_1[2] = ptVar2->tm_hour;
  param_1[3] = ptVar2->tm_mday;
  param_1[4] = ptVar2->tm_mon;
  param_1[5] = ptVar2->tm_year;
  param_1[6] = ptVar2->tm_wday;
  param_1[7] = ptVar2->tm_yday;
  param_1[8] = ptVar2->tm_isdst;
  pcVar1 = ptVar2->tm_zone;
  param_1[9] = ptVar2->tm_gmtoff;
  param_1[10] = (int)pcVar1;
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0x905d8
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x18],EAX
XOR EAX,EAX
LEA EDI,[ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x2c]
PUSH EDI
CALL 0x0001abc0
ADD ESP,0x10
CMP dword ptr [ESP + 0x8],-0x1
JZ 0x00080209
SUB ESP,0xc
PUSH EDI
CALL 0x0001bfc0
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESI],EDX
MOV EDX,dword ptr [EAX + 0x4]
MOV dword ptr [ESI + 0x4],EDX
MOV EDX,dword ptr [EAX + 0x8]
MOV dword ptr [ESI + 0x8],EDX
MOV EDX,dword ptr [EAX + 0xc]
MOV dword ptr [ESI + 0xc],EDX
MOV EDX,dword ptr [EAX + 0x10]
MOV dword ptr [ESI + 0x10],EDX
MOV EDX,dword ptr [EAX + 0x14]
MOV dword ptr [ESI + 0x14],EDX
MOV EDX,dword ptr [EAX + 0x18]
MOV dword ptr [ESI + 0x18],EDX
MOV EDX,dword ptr [EAX + 0x1c]
MOV dword ptr [ESI + 0x1c],EDX
MOV EDX,dword ptr [EAX + 0x20]
MOV dword ptr [ESI + 0x20],EDX
MOV EDX,dword ptr [EAX + 0x24]
MOV EAX,dword ptr [EAX + 0x28]
MOV dword ptr [ESI + 0x24],EDX
MOV dword ptr [ESI + 0x28],EAX
MOV EAX,ESI
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00080225
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET 0x4
LEA EAX,[EBX + 0xfffb9d78]
PUSH EAX
LEA EAX,[EBX + 0xfffb9d5c]
PUSH 0xe
PUSH EAX
LEA EAX,[EBX + 0xfffb9d63]
PUSH EAX
CALL 0x0001c000
CALL 0x000a39d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_00080170(int *param_1)\n\n{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}\n\n" comment (function_definition "int * FUN_00080170(int *param_1)\n\n{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" primitive_type (pointer_declarator "* FUN_00080170(int *param_1)" * (function_declarator "FUN_00080170(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "tm *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "time(&local_14);" (call_expression "time(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) ))) ;) (if_statement "if (local_14 == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" if (parenthesized_expression "(local_14 == -1)" ( (binary_expression "local_14 == -1" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" { comment (expression_statement "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");" (call_expression "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime")" identifier (argument_list "("t != ((time_t)-1)","time.c",0xe,"ltime")" ( (string_literal ""t != ((time_t)-1)"" " string_content ") , (string_literal ""time.c"" " string_content ") , number_literal , (string_literal ""ltime"" " string_content ") ))) ;) })) (expression_statement "ptVar2 = localtime(&local_14);" (assignment_expression "ptVar2 = localtime(&local_14)" identifier = (call_expression "localtime(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) )))) ;) (expression_statement "*param_1 = ptVar2->tm_sec;" (assignment_expression "*param_1 = ptVar2->tm_sec" (pointer_expression "*param_1" * identifier) = (field_expression "ptVar2->tm_sec" identifier -> field_identifier)) ;) (expression_statement "param_1[1] = ptVar2->tm_min;" (assignment_expression "param_1[1] = ptVar2->tm_min" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_min" identifier -> field_identifier)) ;) (expression_statement "param_1[2] = ptVar2->tm_hour;" (assignment_expression "param_1[2] = ptVar2->tm_hour" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_hour" identifier -> field_identifier)) ;) (expression_statement "param_1[3] = ptVar2->tm_mday;" (assignment_expression "param_1[3] = ptVar2->tm_mday" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_mday" identifier -> field_identifier)) ;) (expression_statement "param_1[4] = ptVar2->tm_mon;" (assignment_expression "param_1[4] = ptVar2->tm_mon" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_mon" identifier -> field_identifier)) ;) (expression_statement "param_1[5] = ptVar2->tm_year;" (assignment_expression "param_1[5] = ptVar2->tm_year" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_year" identifier -> field_identifier)) ;) (expression_statement "param_1[6] = ptVar2->tm_wday;" (assignment_expression "param_1[6] = ptVar2->tm_wday" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_wday" identifier -> field_identifier)) ;) (expression_statement "param_1[7] = ptVar2->tm_yday;" (assignment_expression "param_1[7] = ptVar2->tm_yday" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_yday" identifier -> field_identifier)) ;) (expression_statement "param_1[8] = ptVar2->tm_isdst;" (assignment_expression "param_1[8] = ptVar2->tm_isdst" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_isdst" identifier -> field_identifier)) ;) (expression_statement "pcVar1 = ptVar2->tm_zone;" (assignment_expression "pcVar1 = ptVar2->tm_zone" identifier = (field_expression "ptVar2->tm_zone" identifier -> field_identifier)) ;) (expression_statement "param_1[9] = ptVar2->tm_gmtoff;" (assignment_expression "param_1[9] = ptVar2->tm_gmtoff" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_gmtoff" identifier -> field_identifier)) ;) (expression_statement "param_1[10] = (int)pcVar1;" (assignment_expression "param_1[10] = (int)pcVar1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\ntm * ltime(void)\n\n{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  tm *in_stack_00000004;\n  time_t t;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&t);\n  if (t == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&t);\n  in_stack_00000004->tm_sec = ptVar2->tm_sec;\n  in_stack_00000004->tm_min = ptVar2->tm_min;\n  in_stack_00000004->tm_hour = ptVar2->tm_hour;\n  in_stack_00000004->tm_mday = ptVar2->tm_mday;\n  in_stack_00000004->tm_mon = ptVar2->tm_mon;\n  in_stack_00000004->tm_year = ptVar2->tm_year;\n  in_stack_00000004->tm_wday = ptVar2->tm_wday;\n  in_stack_00000004->tm_yday = ptVar2->tm_yday;\n  in_stack_00000004->tm_isdst = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  in_stack_00000004->tm_gmtoff = ptVar2->tm_gmtoff;\n  in_stack_00000004->tm_zone = pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return in_stack_00000004;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "tm * ltime(void)\n\n{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  tm *in_stack_00000004;\n  time_t t;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&t);\n  if (t == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&t);\n  in_stack_00000004->tm_sec = ptVar2->tm_sec;\n  in_stack_00000004->tm_min = ptVar2->tm_min;\n  in_stack_00000004->tm_hour = ptVar2->tm_hour;\n  in_stack_00000004->tm_mday = ptVar2->tm_mday;\n  in_stack_00000004->tm_mon = ptVar2->tm_mon;\n  in_stack_00000004->tm_year = ptVar2->tm_year;\n  in_stack_00000004->tm_wday = ptVar2->tm_wday;\n  in_stack_00000004->tm_yday = ptVar2->tm_yday;\n  in_stack_00000004->tm_isdst = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  in_stack_00000004->tm_gmtoff = ptVar2->tm_gmtoff;\n  in_stack_00000004->tm_zone = pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return in_stack_00000004;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* ltime(void)" * (function_declarator "ltime(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  tm *in_stack_00000004;\n  time_t t;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&t);\n  if (t == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&t);\n  in_stack_00000004->tm_sec = ptVar2->tm_sec;\n  in_stack_00000004->tm_min = ptVar2->tm_min;\n  in_stack_00000004->tm_hour = ptVar2->tm_hour;\n  in_stack_00000004->tm_mday = ptVar2->tm_mday;\n  in_stack_00000004->tm_mon = ptVar2->tm_mon;\n  in_stack_00000004->tm_year = ptVar2->tm_year;\n  in_stack_00000004->tm_wday = ptVar2->tm_wday;\n  in_stack_00000004->tm_yday = ptVar2->tm_yday;\n  in_stack_00000004->tm_isdst = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  in_stack_00000004->tm_gmtoff = ptVar2->tm_gmtoff;\n  in_stack_00000004->tm_zone = pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return in_stack_00000004;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "tm *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "tm *in_stack_00000004;" type_identifier (pointer_declarator "*in_stack_00000004" * identifier) ;) (declaration "time_t t;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "time(&t);" (call_expression "time(&t)" identifier (argument_list "(&t)" ( (pointer_expression "&t" & identifier) ))) ;) (if_statement "if (t == -1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" if (parenthesized_expression "(t == -1)" ( (binary_expression "t == -1" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" { comment (expression_statement "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");" (call_expression "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime")" identifier (argument_list "("t != ((time_t)-1)","time.c",0xe,"ltime")" ( (string_literal ""t != ((time_t)-1)"" " string_content ") , (string_literal ""time.c"" " string_content ") , number_literal , (string_literal ""ltime"" " string_content ") ))) ;) })) (expression_statement "ptVar2 = localtime(&t);" (assignment_expression "ptVar2 = localtime(&t)" identifier = (call_expression "localtime(&t)" identifier (argument_list "(&t)" ( (pointer_expression "&t" & identifier) )))) ;) (expression_statement "in_stack_00000004->tm_sec = ptVar2->tm_sec;" (assignment_expression "in_stack_00000004->tm_sec = ptVar2->tm_sec" (field_expression "in_stack_00000004->tm_sec" identifier -> field_identifier) = (field_expression "ptVar2->tm_sec" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_min = ptVar2->tm_min;" (assignment_expression "in_stack_00000004->tm_min = ptVar2->tm_min" (field_expression "in_stack_00000004->tm_min" identifier -> field_identifier) = (field_expression "ptVar2->tm_min" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_hour = ptVar2->tm_hour;" (assignment_expression "in_stack_00000004->tm_hour = ptVar2->tm_hour" (field_expression "in_stack_00000004->tm_hour" identifier -> field_identifier) = (field_expression "ptVar2->tm_hour" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_mday = ptVar2->tm_mday;" (assignment_expression "in_stack_00000004->tm_mday = ptVar2->tm_mday" (field_expression "in_stack_00000004->tm_mday" identifier -> field_identifier) = (field_expression "ptVar2->tm_mday" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_mon = ptVar2->tm_mon;" (assignment_expression "in_stack_00000004->tm_mon = ptVar2->tm_mon" (field_expression "in_stack_00000004->tm_mon" identifier -> field_identifier) = (field_expression "ptVar2->tm_mon" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_year = ptVar2->tm_year;" (assignment_expression "in_stack_00000004->tm_year = ptVar2->tm_year" (field_expression "in_stack_00000004->tm_year" identifier -> field_identifier) = (field_expression "ptVar2->tm_year" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_wday = ptVar2->tm_wday;" (assignment_expression "in_stack_00000004->tm_wday = ptVar2->tm_wday" (field_expression "in_stack_00000004->tm_wday" identifier -> field_identifier) = (field_expression "ptVar2->tm_wday" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_yday = ptVar2->tm_yday;" (assignment_expression "in_stack_00000004->tm_yday = ptVar2->tm_yday" (field_expression "in_stack_00000004->tm_yday" identifier -> field_identifier) = (field_expression "ptVar2->tm_yday" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_isdst = ptVar2->tm_isdst;" (assignment_expression "in_stack_00000004->tm_isdst = ptVar2->tm_isdst" (field_expression "in_stack_00000004->tm_isdst" identifier -> field_identifier) = (field_expression "ptVar2->tm_isdst" identifier -> field_identifier)) ;) (expression_statement "pcVar1 = ptVar2->tm_zone;" (assignment_expression "pcVar1 = ptVar2->tm_zone" identifier = (field_expression "ptVar2->tm_zone" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_gmtoff = ptVar2->tm_gmtoff;" (assignment_expression "in_stack_00000004->tm_gmtoff = ptVar2->tm_gmtoff" (field_expression "in_stack_00000004->tm_gmtoff" identifier -> field_identifier) = (field_expression "ptVar2->tm_gmtoff" identifier -> field_identifier)) ;) (expression_statement "in_stack_00000004->tm_zone = pcVar1;" (assignment_expression "in_stack_00000004->tm_zone = pcVar1" (field_expression "in_stack_00000004->tm_zone" identifier -> field_identifier) = identifier) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return in_stack_00000004;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return in_stack_00000004;\n  }" { (return_statement "return in_stack_00000004;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int * FUN_00080170(int *param_1)\n\n{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_000a39d0();\n}\n\n" (function_definition "int * FUN_00080170(int *param_1)\n\n{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_000a39d0();\n}" primitive_type (pointer_declarator "* FUN_00080170(int *param_1)" * (function_declarator "FUN_00080170(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_000a39d0();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "tm *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "time(&local_14);" (call_expression "time(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) ))) ;) (if_statement "if (local_14 == -1) {\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" if (parenthesized_expression "(local_14 == -1)" ( (binary_expression "local_14 == -1" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" { (expression_statement "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");" (call_expression "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime")" identifier (argument_list "("t != ((time_t)-1)","time.c",0xe,"ltime")" ( (string_literal ""t != ((time_t)-1)"" " string_content ") , (string_literal ""time.c"" " string_content ") , number_literal , (string_literal ""ltime"" " string_content ") ))) ;) })) (expression_statement "ptVar2 = localtime(&local_14);" (assignment_expression "ptVar2 = localtime(&local_14)" identifier = (call_expression "localtime(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) )))) ;) (expression_statement "*param_1 = ptVar2->tm_sec;" (assignment_expression "*param_1 = ptVar2->tm_sec" (pointer_expression "*param_1" * identifier) = (field_expression "ptVar2->tm_sec" identifier -> field_identifier)) ;) (expression_statement "param_1[1] = ptVar2->tm_min;" (assignment_expression "param_1[1] = ptVar2->tm_min" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_min" identifier -> field_identifier)) ;) (expression_statement "param_1[2] = ptVar2->tm_hour;" (assignment_expression "param_1[2] = ptVar2->tm_hour" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_hour" identifier -> field_identifier)) ;) (expression_statement "param_1[3] = ptVar2->tm_mday;" (assignment_expression "param_1[3] = ptVar2->tm_mday" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_mday" identifier -> field_identifier)) ;) (expression_statement "param_1[4] = ptVar2->tm_mon;" (assignment_expression "param_1[4] = ptVar2->tm_mon" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_mon" identifier -> field_identifier)) ;) (expression_statement "param_1[5] = ptVar2->tm_year;" (assignment_expression "param_1[5] = ptVar2->tm_year" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_year" identifier -> field_identifier)) ;) (expression_statement "param_1[6] = ptVar2->tm_wday;" (assignment_expression "param_1[6] = ptVar2->tm_wday" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_wday" identifier -> field_identifier)) ;) (expression_statement "param_1[7] = ptVar2->tm_yday;" (assignment_expression "param_1[7] = ptVar2->tm_yday" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_yday" identifier -> field_identifier)) ;) (expression_statement "param_1[8] = ptVar2->tm_isdst;" (assignment_expression "param_1[8] = ptVar2->tm_isdst" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_isdst" identifier -> field_identifier)) ;) (expression_statement "pcVar1 = ptVar2->tm_zone;" (assignment_expression "pcVar1 = ptVar2->tm_zone" identifier = (field_expression "ptVar2->tm_zone" identifier -> field_identifier)) ;) (expression_statement "param_1[9] = ptVar2->tm_gmtoff;" (assignment_expression "param_1[9] = ptVar2->tm_gmtoff" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (field_expression "ptVar2->tm_gmtoff" identifier -> field_identifier)) ;) (expression_statement "param_1[10] = (int)pcVar1;" (assignment_expression "param_1[10] = (int)pcVar1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int * FUN_00080170(int *param_1)\n\n{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_000a39d0();\n}" (primitive_type "int") (pointer_declarator "* FUN_00080170(int *param_1)" (* "*") (function_declarator "FUN_00080170(int *param_1)" (identifier "FUN_00080170") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  char *pcVar1;\n  tm *ptVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  time(&local_14);\n  if (local_14 == -1) {\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }\n  ptVar2 = localtime(&local_14);\n  *param_1 = ptVar2->tm_sec;\n  param_1[1] = ptVar2->tm_min;\n  param_1[2] = ptVar2->tm_hour;\n  param_1[3] = ptVar2->tm_mday;\n  param_1[4] = ptVar2->tm_mon;\n  param_1[5] = ptVar2->tm_year;\n  param_1[6] = ptVar2->tm_wday;\n  param_1[7] = ptVar2->tm_yday;\n  param_1[8] = ptVar2->tm_isdst;\n  pcVar1 = ptVar2->tm_zone;\n  param_1[9] = ptVar2->tm_gmtoff;\n  param_1[10] = (int)pcVar1;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_000a39d0();\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "tm *ptVar2;" (type_identifier "tm") (pointer_declarator "*ptVar2" (* "*") (identifier "ptVar2")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "time(&local_14);" (call_expression "time(&local_14)" (identifier "time") (argument_list "(&local_14)" (( "(") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")"))) (; ";")) (if_statement "if (local_14 == -1) {\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" (if "if") (parenthesized_expression "(local_14 == -1)" (( "(") (binary_expression "local_14 == -1" (identifier "local_14") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n                    \n    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");\n  }" ({ "{") (expression_statement "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");" (call_expression "__assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime")" (identifier "__assert_fail") (argument_list "("t != ((time_t)-1)","time.c",0xe,"ltime")" (( "(") (string_literal ""t != ((time_t)-1)"" (" """) (string_content "t != ((time_t)-1)") (" """)) (, ",") (string_literal ""time.c"" (" """) (string_content "time.c") (" """)) (, ",") (number_literal "0xe") (, ",") (string_literal ""ltime"" (" """) (string_content "ltime") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "ptVar2 = localtime(&local_14);" (assignment_expression "ptVar2 = localtime(&local_14)" (identifier "ptVar2") (= "=") (call_expression "localtime(&local_14)" (identifier "localtime") (argument_list "(&local_14)" (( "(") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (expression_statement "*param_1 = ptVar2->tm_sec;" (assignment_expression "*param_1 = ptVar2->tm_sec" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (field_expression "ptVar2->tm_sec" (identifier "ptVar2") (-> "->") (field_identifier "tm_sec"))) (; ";")) (expression_statement "param_1[1] = ptVar2->tm_min;" (assignment_expression "param_1[1] = ptVar2->tm_min" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (field_expression "ptVar2->tm_min" (identifier "ptVar2") (-> "->") (field_identifier "tm_min"))) (; ";")) (expression_statement "param_1[2] = ptVar2->tm_hour;" (assignment_expression "param_1[2] = ptVar2->tm_hour" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (field_expression "ptVar2->tm_hour" (identifier "ptVar2") (-> "->") (field_identifier "tm_hour"))) (; ";")) (expression_statement "param_1[3] = ptVar2->tm_mday;" (assignment_expression "param_1[3] = ptVar2->tm_mday" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (field_expression "ptVar2->tm_mday" (identifier "ptVar2") (-> "->") (field_identifier "tm_mday"))) (; ";")) (expression_statement "param_1[4] = ptVar2->tm_mon;" (assignment_expression "param_1[4] = ptVar2->tm_mon" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (field_expression "ptVar2->tm_mon" (identifier "ptVar2") (-> "->") (field_identifier "tm_mon"))) (; ";")) (expression_statement "param_1[5] = ptVar2->tm_year;" (assignment_expression "param_1[5] = ptVar2->tm_year" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (field_expression "ptVar2->tm_year" (identifier "ptVar2") (-> "->") (field_identifier "tm_year"))) (; ";")) (expression_statement "param_1[6] = ptVar2->tm_wday;" (assignment_expression "param_1[6] = ptVar2->tm_wday" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (field_expression "ptVar2->tm_wday" (identifier "ptVar2") (-> "->") (field_identifier "tm_wday"))) (; ";")) (expression_statement "param_1[7] = ptVar2->tm_yday;" (assignment_expression "param_1[7] = ptVar2->tm_yday" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (field_expression "ptVar2->tm_yday" (identifier "ptVar2") (-> "->") (field_identifier "tm_yday"))) (; ";")) (expression_statement "param_1[8] = ptVar2->tm_isdst;" (assignment_expression "param_1[8] = ptVar2->tm_isdst" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (field_expression "ptVar2->tm_isdst" (identifier "ptVar2") (-> "->") (field_identifier "tm_isdst"))) (; ";")) (expression_statement "pcVar1 = ptVar2->tm_zone;" (assignment_expression "pcVar1 = ptVar2->tm_zone" (identifier "pcVar1") (= "=") (field_expression "ptVar2->tm_zone" (identifier "ptVar2") (-> "->") (field_identifier "tm_zone"))) (; ";")) (expression_statement "param_1[9] = ptVar2->tm_gmtoff;" (assignment_expression "param_1[9] = ptVar2->tm_gmtoff" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (field_expression "ptVar2->tm_gmtoff" (identifier "ptVar2") (-> "->") (field_identifier "tm_gmtoff"))) (; ";")) (expression_statement "param_1[10] = (int)pcVar1;" (assignment_expression "param_1[10] = (int)pcVar1" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1"))) (; ";")) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" (identifier "FUN_000a39d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 * function_1(void)

{
  char *pcVar1;
  type_1 *ptVar2;
  int var_1;
  type_1 *in_stack_00000004;
  type_2 var_3;
  int var_6;
  
  var_6 = *(int *)(var_1 + 0x14);
  var_2(&var_3);
  if (var_3 == -1) {
                    /* WARNING: Subroutine does not return */
    var_4("t != ((time_t)-1)","time.c",0xe,"ltime");
  }
  ptVar2 = var_5(&var_3);
  in_stack_00000004->tm_sec = ptVar2->tm_sec;
  in_stack_00000004->tm_min = ptVar2->tm_min;
  in_stack_00000004->tm_hour = ptVar2->tm_hour;
  in_stack_00000004->tm_mday = ptVar2->tm_mday;
  in_stack_00000004->tm_mon = ptVar2->tm_mon;
  in_stack_00000004->tm_year = ptVar2->tm_year;
  in_stack_00000004->tm_wday = ptVar2->tm_wday;
  in_stack_00000004->tm_yday = ptVar2->tm_yday;
  in_stack_00000004->tm_isdst = ptVar2->tm_isdst;
  pcVar1 = ptVar2->tm_zone;
  in_stack_00000004->tm_gmtoff = ptVar2->tm_gmtoff;
  in_stack_00000004->tm_zone = pcVar1;
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return in_stack_00000004;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

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

int * MASKED(int *param_1)

{
  char *pcVar1;
  tm *ptVar2;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  time(&local_14);
  if (local_14 == -1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("t != ((time_t)-1)","time.c",0xe,"ltime");
  }
  ptVar2 = localtime(&local_14);
  *param_1 = ptVar2->tm_sec;
  param_1[1] = ptVar2->tm_min;
  param_1[2] = ptVar2->tm_hour;
  param_1[3] = ptVar2->tm_mday;
  param_1[4] = ptVar2->tm_mon;
  param_1[5] = ptVar2->tm_year;
  param_1[6] = ptVar2->tm_wday;
  param_1[7] = ptVar2->tm_yday;
  param_1[8] = ptVar2->tm_isdst;
  pcVar1 = ptVar2->tm_zone;
  param_1[9] = ptVar2->tm_gmtoff;
  param_1[10] = (int)pcVar1;
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}

