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

char * time_string(STRUCT_UTMP *utmp_ent)

{
  tm *__tp;
  undefined1 *puVar1;
  int in_GS_OFFSET;
  time_t t;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x11cf7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  __tp = localtime(&t);
  if (__tp == (tm *)0x0) {
    puVar1 = imaxtostr((longlong)t,buf_8354);
  }
  else {
    puVar1 = buf_8354;
    strftime(buf_8354,0x21,time_format,__tp);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined * FUN_00011cf0(void)

{
  tm *__tp;
  undefined *puVar1;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x11cf7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  __tp = localtime(&local_14);
  if (__tp == (tm *)0x0) {
    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);
  }
  else {
    puVar1 = &DAT_000211e0;
    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001a090();
}


PUSH ESI
PUSH EBX
CALL 0x000118f0
ADD EBX,0xf309
SUB ESP,0x20
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x18],EDX
XOR EDX,EDX
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESP + 0x14]
PUSH EAX
CALL 0x00011270
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00011d50
LEA ESI,[EBX + 0x1e0]
PUSH EAX
PUSH dword ptr [EBX + 0x218]
PUSH 0x21
PUSH ESI
CALL 0x00011260
ADD ESP,0x10
MOV EAX,ESI
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00011d6b
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0x1e0]
PUSH EAX
MOV EAX,dword ptr [ESP + 0x10]
CDQ
PUSH EDX
PUSH EAX
CALL 0x00013250
ADD ESP,0x10
JMP 0x00011d3c
CALL 0x0001a090
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * FUN_00011cf0(void)\n\n{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001a090();\n}\n\n" comment (function_definition "undefined * FUN_00011cf0(void)\n\n{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001a090();\n}" type_identifier (pointer_declarator "* FUN_00011cf0(void)" * (function_declarator "FUN_00011cf0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001a090();\n}" { (declaration "tm *__tp;" type_identifier (pointer_declarator "*__tp" * identifier) ;) (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x11cf7;" (assignment_expression "uStack_c = 0x11cf7" identifier = number_literal) ;) (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 "__tp = localtime(&local_14);" (assignment_expression "__tp = localtime(&local_14)" identifier = (call_expression "localtime(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" if (parenthesized_expression "(__tp == (tm *)0x0)" ( (binary_expression "__tp == (tm *)0x0" identifier == (cast_expression "(tm *)0x0" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }" { (expression_statement "puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);" (assignment_expression "puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" identifier = (cast_expression "(undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" identifier (argument_list "(local_14,local_14 >> 0x1f,&DAT_000211e0)" ( identifier , (binary_expression "local_14 >> 0x1f" identifier >> number_literal) , (pointer_expression "&DAT_000211e0" & identifier) ))))) ;) }) (else_clause "else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" else (compound_statement "{\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" { (expression_statement "puVar1 = &DAT_000211e0;" (assignment_expression "puVar1 = &DAT_000211e0" identifier = (pointer_expression "&DAT_000211e0" & identifier)) ;) (expression_statement "strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);" (call_expression "strftime(&DAT_000211e0,0x21,DAT_00021218,__tp)" identifier (argument_list "(&DAT_000211e0,0x21,DAT_00021218,__tp)" ( (pointer_expression "&DAT_000211e0" & identifier) , number_literal , identifier , identifier ))) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\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 puVar1;\n  }" { (return_statement "return puVar1;" return identifier ;) })) comment (expression_statement "FUN_0001a090();" (call_expression "FUN_0001a090()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * time_string(STRUCT_UTMP *utmp_ent)\n\n{\n  tm *__tp;\n  undefined1 *puVar1;\n  int in_GS_OFFSET;\n  time_t t;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&t);\n  if (__tp == (tm *)0x0) {\n    puVar1 = imaxtostr((longlong)t,buf_8354);\n  }\n  else {\n    puVar1 = buf_8354;\n    strftime(buf_8354,0x21,time_format,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "char * time_string(STRUCT_UTMP *utmp_ent)\n\n{\n  tm *__tp;\n  undefined1 *puVar1;\n  int in_GS_OFFSET;\n  time_t t;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&t);\n  if (__tp == (tm *)0x0) {\n    puVar1 = imaxtostr((longlong)t,buf_8354);\n  }\n  else {\n    puVar1 = buf_8354;\n    strftime(buf_8354,0x21,time_format,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* time_string(STRUCT_UTMP *utmp_ent)" * (function_declarator "time_string(STRUCT_UTMP *utmp_ent)" identifier (parameter_list "(STRUCT_UTMP *utmp_ent)" ( (parameter_declaration "STRUCT_UTMP *utmp_ent" type_identifier (pointer_declarator "*utmp_ent" * identifier)) )))) (compound_statement "{\n  tm *__tp;\n  undefined1 *puVar1;\n  int in_GS_OFFSET;\n  time_t t;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&t);\n  if (__tp == (tm *)0x0) {\n    puVar1 = imaxtostr((longlong)t,buf_8354);\n  }\n  else {\n    puVar1 = buf_8354;\n    strftime(buf_8354,0x21,time_format,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "tm *__tp;" type_identifier (pointer_declarator "*__tp" * identifier) ;) (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "time_t t;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x11cf7;" (assignment_expression "uStack_c = 0x11cf7" identifier = number_literal) ;) (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 "__tp = localtime(&t);" (assignment_expression "__tp = localtime(&t)" identifier = (call_expression "localtime(&t)" identifier (argument_list "(&t)" ( (pointer_expression "&t" & identifier) )))) ;) (if_statement "if (__tp == (tm *)0x0) {\n    puVar1 = imaxtostr((longlong)t,buf_8354);\n  }\n  else {\n    puVar1 = buf_8354;\n    strftime(buf_8354,0x21,time_format,__tp);\n  }" if (parenthesized_expression "(__tp == (tm *)0x0)" ( (binary_expression "__tp == (tm *)0x0" identifier == (cast_expression "(tm *)0x0" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = imaxtostr((longlong)t,buf_8354);\n  }" { (expression_statement "puVar1 = imaxtostr((longlong)t,buf_8354);" (assignment_expression "puVar1 = imaxtostr((longlong)t,buf_8354)" identifier = (call_expression "imaxtostr((longlong)t,buf_8354)" identifier (argument_list "((longlong)t,buf_8354)" ( (cast_expression "(longlong)t" ( (type_descriptor "longlong" type_identifier) ) identifier) , identifier )))) ;) }) (else_clause "else {\n    puVar1 = buf_8354;\n    strftime(buf_8354,0x21,time_format,__tp);\n  }" else (compound_statement "{\n    puVar1 = buf_8354;\n    strftime(buf_8354,0x21,time_format,__tp);\n  }" { (expression_statement "puVar1 = buf_8354;" (assignment_expression "puVar1 = buf_8354" identifier = identifier) ;) (expression_statement "strftime(buf_8354,0x21,time_format,__tp);" (call_expression "strftime(buf_8354,0x21,time_format,__tp)" identifier (argument_list "(buf_8354,0x21,time_format,__tp)" ( identifier , number_literal , identifier , identifier ))) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\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 puVar1;\n  }" { (return_statement "return puVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined * FUN_00011cf0(void)\n\n{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0001a090();\n}\n\n" (function_definition "undefined * FUN_00011cf0(void)\n\n{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0001a090();\n}" type_identifier (pointer_declarator "* FUN_00011cf0(void)" * (function_declarator "FUN_00011cf0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0001a090();\n}" { (declaration "tm *__tp;" type_identifier (pointer_declarator "*__tp" * identifier) ;) (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x11cf7;" (assignment_expression "uStack_c = 0x11cf7" identifier = number_literal) ;) (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 "__tp = localtime(&local_14);" (assignment_expression "__tp = localtime(&local_14)" identifier = (call_expression "localtime(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" if (parenthesized_expression "(__tp == (tm *)0x0)" ( (binary_expression "__tp == (tm *)0x0" identifier == (cast_expression "(tm *)0x0" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }" { (expression_statement "puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);" (assignment_expression "puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" identifier = (cast_expression "(undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" identifier (argument_list "(local_14,local_14 >> 0x1f,&DAT_000211e0)" ( identifier , (binary_expression "local_14 >> 0x1f" identifier >> number_literal) , (pointer_expression "&DAT_000211e0" & identifier) ))))) ;) }) (else_clause "else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" else (compound_statement "{\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" { (expression_statement "puVar1 = &DAT_000211e0;" (assignment_expression "puVar1 = &DAT_000211e0" identifier = (pointer_expression "&DAT_000211e0" & identifier)) ;) (expression_statement "strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);" (call_expression "strftime(&DAT_000211e0,0x21,DAT_00021218,__tp)" identifier (argument_list "(&DAT_000211e0,0x21,DAT_00021218,__tp)" ( (pointer_expression "&DAT_000211e0" & identifier) , number_literal , identifier , identifier ))) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\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 puVar1;\n  }" { (return_statement "return puVar1;" return identifier ;) })) (expression_statement "FUN_0001a090();" (call_expression "FUN_0001a090()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT >> LIT) , (pointer_expression & IDENT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , IDENT , 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 "undefined * FUN_00011cf0(void)\n\n{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0001a090();\n}" (type_identifier "undefined") (pointer_declarator "* FUN_00011cf0(void)" (* "*") (function_declarator "FUN_00011cf0(void)" (identifier "FUN_00011cf0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  tm *__tp;\n  undefined *puVar1;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x11cf7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __tp = localtime(&local_14);\n  if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0001a090();\n}" ({ "{") (declaration "tm *__tp;" (type_identifier "tm") (pointer_declarator "*__tp" (* "*") (identifier "__tp")) (; ";")) (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (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") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x11cf7;" (assignment_expression "uStack_c = 0x11cf7" (identifier "uStack_c") (= "=") (number_literal "0x11cf7")) (; ";")) (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 "__tp = localtime(&local_14);" (assignment_expression "__tp = localtime(&local_14)" (identifier "__tp") (= "=") (call_expression "localtime(&local_14)" (identifier "localtime") (argument_list "(&local_14)" (( "(") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (if_statement "if (__tp == (tm *)0x0) {\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }\n  else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" (if "if") (parenthesized_expression "(__tp == (tm *)0x0)" (( "(") (binary_expression "__tp == (tm *)0x0" (identifier "__tp") (== "==") (cast_expression "(tm *)0x0" (( "(") (type_descriptor "tm *" (type_identifier "tm") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);\n  }" ({ "{") (expression_statement "puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);" (assignment_expression "puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" (identifier "puVar1") (= "=") (cast_expression "(undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0)" (identifier "FUN_00013250") (argument_list "(local_14,local_14 >> 0x1f,&DAT_000211e0)" (( "(") (identifier "local_14") (, ",") (binary_expression "local_14 >> 0x1f" (identifier "local_14") (>> ">>") (number_literal "0x1f")) (, ",") (pointer_expression "&DAT_000211e0" (& "&") (identifier "DAT_000211e0")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" (else "else") (compound_statement "{\n    puVar1 = &DAT_000211e0;\n    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);\n  }" ({ "{") (expression_statement "puVar1 = &DAT_000211e0;" (assignment_expression "puVar1 = &DAT_000211e0" (identifier "puVar1") (= "=") (pointer_expression "&DAT_000211e0" (& "&") (identifier "DAT_000211e0"))) (; ";")) (expression_statement "strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);" (call_expression "strftime(&DAT_000211e0,0x21,DAT_00021218,__tp)" (identifier "strftime") (argument_list "(&DAT_000211e0,0x21,DAT_00021218,__tp)" (( "(") (pointer_expression "&DAT_000211e0" (& "&") (identifier "DAT_000211e0")) (, ",") (number_literal "0x21") (, ",") (identifier "DAT_00021218") (, ",") (identifier "__tp") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\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 puVar1;\n  }" ({ "{") (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (expression_statement "FUN_0001a090();" (call_expression "FUN_0001a090()" (identifier "FUN_0001a090") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(type_1 *utmp_ent)

{
  type_2 *var_3;
  type_3 *puVar1;
  int var_1;
  type_4 t;
  int var_6;
  type_5 uStack_c;
  
  uStack_c = 0x11cf7;
  var_6 = *(int *)(var_1 + 0x14);
  var_3 = var_2(&t);
  if (var_3 == (type_2 *)0x0) {
    puVar1 = var_4((type_6)t,buf_8354);
  }
  else {
    puVar1 = buf_8354;
    var_5(buf_8354,0x21,time_format,var_3);
  }
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return puVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

undefined * MASKED(void)

{
  tm *__tp;
  undefined *puVar1;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x11cf7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  __tp = localtime(&local_14);
  if (__tp == (tm *)0x0) {
    puVar1 = (undefined *)FUN_00013250(local_14,local_14 >> 0x1f,&DAT_000211e0);
  }
  else {
    puVar1 = &DAT_000211e0;
    strftime(&DAT_000211e0,0x21,DAT_00021218,__tp);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001a090();
}

