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

char * __regparm3 debug_strfdatetime(tm *tm,parser_control *pc,char *buf,int n)

{
  int iVar1;
  size_t sVar2;
  char *pcVar3;
  int in_GS_OFFSET;
  char time_zone_buf [27];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  sVar2 = nstrftime(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0);
  if (((pc != (parser_control *)0x0) && ((int)sVar2 < 100)) && (pc->zones_seen != 0)) {
    pcVar3 = time_zone_str(pc->time_zone,time_zone_buf);
    __snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return buf;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int __regparm3 FUN_00015d40(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);
  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {
    uVar3 = FUN_00015b80();
    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00027240();
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x00012e10
ADD EBX,0x1c2b3
SUB ESP,0x34
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x24],ECX
XOR ECX,ECX
PUSH 0x0
PUSH 0x0
PUSH EAX
LEA EAX,[EBX + 0xffff7950]
PUSH EAX
PUSH 0x64
PUSH ESI
CALL 0x00024150
ADD ESP,0x20
TEST EDI,EDI
JZ 0x00015d8f
MOV EBP,EAX
CMP EAX,0x63
JG 0x00015d8f
MOV EAX,dword ptr [EDI + 0xa0]
TEST EAX,EAX
JNZ 0x00015db0
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00015de0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EDI + 0x14]
LEA EDX,[ESP + 0x1]
CALL 0x00015b80
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffff796a]
PUSH EAX
MOV EAX,0x64
SUB EAX,EBP
ADD EBP,ESI
PUSH -0x1
PUSH 0x1
PUSH EAX
PUSH EBP
CALL 0x00012060
ADD ESP,0x20
JMP 0x00015d8f
CALL 0x00027240
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00015d40(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00027240();\n}\n\n" comment (function_definition "int __regparm3 FUN_00015d40(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00027240();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015d40(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00027240();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);" (assignment_expression "iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" identifier = (call_expression "FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" identifier (argument_list "(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" ( identifier , number_literal , (string_literal ""(Y-M-D) %Y-%m-%d %H:%M:%S"" " string_content ") , identifier , number_literal , number_literal )))) ;) (if_statement "if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }" if (parenthesized_expression "(((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0))" ( (binary_expression "((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)" (parenthesized_expression "((param_2 != 0) && (iVar2 < 100))" ( (binary_expression "(param_2 != 0) && (iVar2 < 100)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 < 100)" ( (binary_expression "iVar2 < 100" identifier < number_literal) ))) )) && (parenthesized_expression "(*(int *)(param_2 + 0xa0) != 0)" ( (binary_expression "*(int *)(param_2 + 0xa0) != 0" (pointer_expression "*(int *)(param_2 + 0xa0)" * (cast_expression "(int *)(param_2 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }" { (expression_statement "uVar3 = FUN_00015b80();" (assignment_expression "uVar3 = FUN_00015b80()" identifier = (call_expression "FUN_00015b80()" identifier (argument_list "()" ( )))) ;) (expression_statement "__snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);" (call_expression "__snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3)" identifier (argument_list "(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3)" ( (binary_expression "iVar2 + param_3" identifier + identifier) , (binary_expression "100 - iVar2" number_literal - identifier) , number_literal , number_literal , (string_literal "" TZ=%s"" " string_content ") , identifier ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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_3;\n  }" { (return_statement "return param_3;" return identifier ;) })) comment (expression_statement "FUN_00027240();" (call_expression "FUN_00027240()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 debug_strfdatetime(tm *tm,parser_control *pc,char *buf,int n)\n\n{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  char time_zone_buf [27];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = nstrftime(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0);\n  if (((pc != (parser_control *)0x0) && ((int)sVar2 < 100)) && (pc->zones_seen != 0)) {\n    pcVar3 = time_zone_str(pc->time_zone,time_zone_buf);\n    __snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buf;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "char * __regparm3 debug_strfdatetime(tm *tm,parser_control *pc,char *buf,int n)\n\n{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  char time_zone_buf [27];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = nstrftime(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0);\n  if (((pc != (parser_control *)0x0) && ((int)sVar2 < 100)) && (pc->zones_seen != 0)) {\n    pcVar3 = time_zone_str(pc->time_zone,time_zone_buf);\n    __snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buf;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* __regparm3 debug_strfdatetime(tm *tm,parser_control *pc,char *buf,int n)" * (ERROR "__regparm3" identifier) (function_declarator "debug_strfdatetime(tm *tm,parser_control *pc,char *buf,int n)" identifier (parameter_list "(tm *tm,parser_control *pc,char *buf,int n)" ( (parameter_declaration "tm *tm" type_identifier (pointer_declarator "*tm" * identifier)) , (parameter_declaration "parser_control *pc" type_identifier (pointer_declarator "*pc" * identifier)) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int n" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  char time_zone_buf [27];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = nstrftime(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0);\n  if (((pc != (parser_control *)0x0) && ((int)sVar2 < 100)) && (pc->zones_seen != 0)) {\n    pcVar3 = time_zone_str(pc->time_zone,time_zone_buf);\n    __snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buf;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char time_zone_buf [27];" primitive_type (array_declarator "time_zone_buf [27]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "sVar2 = nstrftime(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0);" (assignment_expression "sVar2 = nstrftime(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0)" identifier = (call_expression "nstrftime(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0)" identifier (argument_list "(buf,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",tm,(timezone_t)0x0,0)" ( identifier , number_literal , (string_literal ""(Y-M-D) %Y-%m-%d %H:%M:%S"" " string_content ") , identifier , (cast_expression "(timezone_t)0x0" ( (type_descriptor "timezone_t" type_identifier) ) number_literal) , number_literal )))) ;) (if_statement "if (((pc != (parser_control *)0x0) && ((int)sVar2 < 100)) && (pc->zones_seen != 0)) {\n    pcVar3 = time_zone_str(pc->time_zone,time_zone_buf);\n    __snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3);\n  }" if (parenthesized_expression "(((pc != (parser_control *)0x0) && ((int)sVar2 < 100)) && (pc->zones_seen != 0))" ( (binary_expression "((pc != (parser_control *)0x0) && ((int)sVar2 < 100)) && (pc->zones_seen != 0)" (parenthesized_expression "((pc != (parser_control *)0x0) && ((int)sVar2 < 100))" ( (binary_expression "(pc != (parser_control *)0x0) && ((int)sVar2 < 100)" (parenthesized_expression "(pc != (parser_control *)0x0)" ( (binary_expression "pc != (parser_control *)0x0" identifier != (cast_expression "(parser_control *)0x0" ( (type_descriptor "parser_control *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((int)sVar2 < 100)" ( (binary_expression "(int)sVar2 < 100" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) ))) )) && (parenthesized_expression "(pc->zones_seen != 0)" ( (binary_expression "pc->zones_seen != 0" (field_expression "pc->zones_seen" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    pcVar3 = time_zone_str(pc->time_zone,time_zone_buf);\n    __snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3);\n  }" { (expression_statement "pcVar3 = time_zone_str(pc->time_zone,time_zone_buf);" (assignment_expression "pcVar3 = time_zone_str(pc->time_zone,time_zone_buf)" identifier = (call_expression "time_zone_str(pc->time_zone,time_zone_buf)" identifier (argument_list "(pc->time_zone,time_zone_buf)" ( (field_expression "pc->time_zone" identifier -> field_identifier) , identifier )))) ;) (expression_statement "__snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3);" (call_expression "__snprintf_chk(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3)" identifier (argument_list "(buf + sVar2,100 - sVar2,1,0xffffffff," TZ=%s",pcVar3)" ( (binary_expression "buf + sVar2" identifier + identifier) , (binary_expression "100 - sVar2" number_literal - identifier) , number_literal , number_literal , (string_literal "" TZ=%s"" " string_content ") , identifier ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buf;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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 buf;\n  }" { (return_statement "return buf;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_00015d40(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    \n  FUN_00027240();\n}\n\n" (function_definition "int __regparm3 FUN_00015d40(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    \n  FUN_00027240();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015d40(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    \n  FUN_00027240();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);" (assignment_expression "iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" identifier = (call_expression "FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" identifier (argument_list "(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" ( identifier , number_literal , (string_literal ""(Y-M-D) %Y-%m-%d %H:%M:%S"" " string_content ") , identifier , number_literal , number_literal )))) ;) (if_statement "if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }" if (parenthesized_expression "(((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0))" ( (binary_expression "((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)" (parenthesized_expression "((param_2 != 0) && (iVar2 < 100))" ( (binary_expression "(param_2 != 0) && (iVar2 < 100)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 < 100)" ( (binary_expression "iVar2 < 100" identifier < number_literal) ))) )) && (parenthesized_expression "(*(int *)(param_2 + 0xa0) != 0)" ( (binary_expression "*(int *)(param_2 + 0xa0) != 0" (pointer_expression "*(int *)(param_2 + 0xa0)" * (cast_expression "(int *)(param_2 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }" { (expression_statement "uVar3 = FUN_00015b80();" (assignment_expression "uVar3 = FUN_00015b80()" identifier = (call_expression "FUN_00015b80()" identifier (argument_list "()" ( )))) ;) (expression_statement "__snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);" (call_expression "__snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3)" identifier (argument_list "(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3)" ( (binary_expression "iVar2 + param_3" identifier + identifier) , (binary_expression "100 - iVar2" number_literal - identifier) , number_literal , number_literal , (string_literal "" TZ=%s"" " string_content ") , identifier ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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_3;\n  }" { (return_statement "return param_3;" return identifier ;) })) (expression_statement "FUN_00027240();" (call_expression "FUN_00027240()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression LIT - IDENT) , LIT , LIT , (string_literal " string_content ") , 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 __regparm3 FUN_00015d40(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    \n  FUN_00027240();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00015d40(undefined4 param_1,int param_2,int param_3)" (identifier "FUN_00015d40") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);\n  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }\n                    \n  FUN_00027240();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (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 "iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);" (assignment_expression "iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" (identifier "iVar2") (= "=") (call_expression "FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" (identifier "FUN_00024150") (argument_list "(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0)" (( "(") (identifier "param_3") (, ",") (number_literal "100") (, ",") (string_literal ""(Y-M-D) %Y-%m-%d %H:%M:%S"" (" """) (string_content "(Y-M-D) %Y-%m-%d %H:%M:%S") (" """)) (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }" (if "if") (parenthesized_expression "(((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0))" (( "(") (binary_expression "((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)" (parenthesized_expression "((param_2 != 0) && (iVar2 < 100))" (( "(") (binary_expression "(param_2 != 0) && (iVar2 < 100)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 < 100)" (( "(") (binary_expression "iVar2 < 100" (identifier "iVar2") (< "<") (number_literal "100")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_2 + 0xa0) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0xa0) != 0" (pointer_expression "*(int *)(param_2 + 0xa0)" (* "*") (cast_expression "(int *)(param_2 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa0)" (( "(") (binary_expression "param_2 + 0xa0" (identifier "param_2") (+ "+") (number_literal "0xa0")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = FUN_00015b80();\n    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);\n  }" ({ "{") (expression_statement "uVar3 = FUN_00015b80();" (assignment_expression "uVar3 = FUN_00015b80()" (identifier "uVar3") (= "=") (call_expression "FUN_00015b80()" (identifier "FUN_00015b80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);" (call_expression "__snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3)" (identifier "__snprintf_chk") (argument_list "(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3)" (( "(") (binary_expression "iVar2 + param_3" (identifier "iVar2") (+ "+") (identifier "param_3")) (, ",") (binary_expression "100 - iVar2" (number_literal "100") (- "-") (identifier "iVar2")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (string_literal "" TZ=%s"" (" """) (string_content " TZ=%s") (" """)) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_3;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (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_3;\n  }" ({ "{") (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (expression_statement "FUN_00027240();" (call_expression "FUN_00027240()" (identifier "FUN_00027240") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * __regparm3 function_1(type_1 *type_1,type_2 *var_3,char *var_6,int n)

{
  int var_8;
  size_t var_7;
  char *pcVar3;
  int var_1;
  char time_zone_buf [27];
  
  var_8 = *(int *)(var_1 + 0x14);
  var_7 = var_2(var_6,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",type_1,(type_3)0x0,0);
  if (((var_3 != (type_2 *)0x0) && ((int)var_7 < 100)) && (var_3->zones_seen != 0)) {
    pcVar3 = var_4(var_3->time_zone,time_zone_buf);
    var_5(var_6 + var_7,100 - var_7,1,0xffffffff," TZ=%s",pcVar3);
  }
  if (var_8 == *(int *)(var_1 + 0x14)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (number_literal) right: (identifier)) (number_literal) (number_literal) (string_literal (string_content)) (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 __regparm3 MASKED(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00024150(param_3,100,"(Y-M-D) %Y-%m-%d %H:%M:%S",param_1,0,0);
  if (((param_2 != 0) && (iVar2 < 100)) && (*(int *)(param_2 + 0xa0) != 0)) {
    uVar3 = FUN_00015b80();
    __snprintf_chk(iVar2 + param_3,100 - iVar2,1,0xffffffff," TZ=%s",uVar3);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00027240();
}

