{"type": "func", "start": 6443668412, "end": 6443668564, "name": "convert_filetime_to_time_t<__int64>", "pseudocode": "// \n// convert_filetime_to_time_t<__int64> from 0x1801293bc to 0x180129454 (152 bytes)\n// \n// 5 xrefs:\n// > common_stat_handle_file_opened<_stat64i32> @ 0x1801292cc\n// > common_stat_handle_file_opened<_stat64i32> @ 0x1801292dc\n// > common_stat_handle_file_opened<_stat64i32> @ 0x1801292ed\n// > <???> @ 0x180202a74\n// > <???> @ 0x180202a80\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall convert_filetime_to_time_t<__int64>(FILETIME a1, __int64 a2)\n{\n  FILETIME FileTime; // [rsp+40h] [rbp-30h] BYREF\n  struct _SYSTEMTIME LocalTime; // [rsp+48h] [rbp-28h] BYREF\n  struct _SYSTEMTIME SystemTime; // [rsp+58h] [rbp-18h] BYREF\n\n  FileTime = a1;\n  if ( a1 )\n  {\n    if ( FileTimeToSystemTime(&FileTime, &SystemTime)\n      && SystemTimeToTzSpecificLocalTime(nullptr, &SystemTime, &LocalTime) )\n    {\n      return common_loctotime_t<__int64>(\n               LocalTime.wYear,\n               LocalTime.wMonth,\n               LocalTime.wDay,\n               LocalTime.wHour,\n               LocalTime.wMinute,\n               LocalTime.wSecond,\n               -1);\n    }\n    else\n    {\n      return -1;\n    }\n  }\n  else\n  {\n    return a2;\n  }\n}", "assembly": "; \n; convert_filetime_to_time_t<__int64> from 0x1801293bc to 0x180129454 (152 bytes)\n; \n; 5 xrefs:\n; > common_stat_handle_file_opened<_stat64i32> @ 0x1801292cc\n; > common_stat_handle_file_opened<_stat64i32> @ 0x1801292dc\n; > common_stat_handle_file_opened<_stat64i32> @ 0x1801292ed\n; > <???> @ 0x180202a74\n; > <???> @ 0x180202a80\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1801293bc\nmov     rbp, rsp                                                       ; +0x2, 0x1801293be\nsub     rsp, 70h                                                       ; +0x5, 0x1801293c1\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x1801293c5\nxor     rax, rsp                                                       ; +0x10, 0x1801293cc\nmov     [rbp+var_8], rax                                               ; +0x13, 0x1801293cf\nmov     qword ptr [rbp+FileTime.dwLowDateTime], rcx                    ; +0x17, 0x1801293d3\ntest    ecx, ecx                                                       ; +0x1b, 0x1801293d7\njnz     short loc_1801293E8                                            ; +0x1d, 0x1801293d9\nshr     rcx, 20h                                                       ; +0x1f, 0x1801293db\ntest    ecx, ecx                                                       ; +0x23, 0x1801293df\njnz     short loc_1801293E8                                            ; +0x25, 0x1801293e1\nmov     rax, rdx                                                       ; +0x27, 0x1801293e3\njmp     short loc_180129442                                            ; +0x2a, 0x1801293e6\nlea     rdx, [rbp+SystemTime]; lpSystemTime                            ; +0x2c, 0x1801293e8\nlea     rcx, [rbp+FileTime]; lpFileTime                                ; +0x30, 0x1801293ec\ncall    cs:FileTimeToSystemTime                                        ; +0x34, 0x1801293f0\ntest    eax, eax                                                       ; +0x3a, 0x1801293f6\njz      short loc_18012943E                                            ; +0x3c, 0x1801293f8\nlea     r8, [rbp+LocalTime]; lpLocalTime                               ; +0x3e, 0x1801293fa\nxor     ecx, ecx; lpTimeZoneInformation                                ; +0x42, 0x1801293fe\nlea     rdx, [rbp+SystemTime]; lpUniversalTime                         ; +0x44, 0x180129400\ncall    cs:SystemTimeToTzSpecificLocalTime                             ; +0x48, 0x180129404\ntest    eax, eax                                                       ; +0x4e, 0x18012940a\njz      short loc_18012943E                                            ; +0x50, 0x18012940c\nor      [rsp+70h+var_40], 0FFFFFFFFh                                   ; +0x52, 0x18012940e\nmovzx   eax, [rbp+LocalTime.wSecond]                                   ; +0x57, 0x180129413\nmovzx   r10d, [rbp+LocalTime.wMinute]                                  ; +0x5b, 0x180129417\nmovzx   r9d, [rbp+LocalTime.wHour]                                     ; +0x60, 0x18012941c\nmovzx   r8d, [rbp+LocalTime.wDay]                                      ; +0x65, 0x180129421\nmovzx   edx, [rbp+LocalTime.wMonth]                                    ; +0x6a, 0x180129426\nmovzx   ecx, [rbp+LocalTime.wYear]                                     ; +0x6e, 0x18012942a\nmov     [rsp+70h+var_48], eax                                          ; +0x72, 0x18012942e\nmov     [rsp+70h+var_50], r10d                                         ; +0x76, 0x180129432\ncall    j_??$common_loctotime_t@_J@@YA_JHHHHHHH@Z                      ; +0x7b, 0x180129437\njmp     short loc_180129442                                            ; +0x80, 0x18012943c\nor      rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x82, 0x18012943e\nmov     rcx, [rbp+var_8]                                               ; +0x86, 0x180129442\nxor     rcx, rsp; StackCookie                                          ; +0x8a, 0x180129446\ncall    __security_check_cookie                                        ; +0x8d, 0x180129449\nadd     rsp, 70h                                                       ; +0x92, 0x18012944e\npop     rbp                                                            ; +0x96, 0x180129452\nretn                                                                   ; +0x97, 0x180129453", "xrefs": ["common_stat_handle_file_opened<_stat64i32> @ 0x1801292cc", "common_stat_handle_file_opened<_stat64i32> @ 0x1801292dc", "common_stat_handle_file_opened<_stat64i32> @ 0x1801292ed", "<???> @ 0x180202a74", "<???> @ 0x180202a80"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}