Function at 0x140001970
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1bd0]
mov eax, 0x1cd0
call fcn.14000a8c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1bc0], rax
mov rbx, qword [rcx]
xor r14d, r14d
mov rdi, rcx
test byte [rbx + 8], 2
je 0x140001c4f
xor edx, edx
lea rcx, [rbp + 0x7b0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8, qword [rbx + 0x20]
lea rcx, [rbp + 0x7b0]
test r8, r8
jne 0x140001a57
movups xmm0, xmmword [str.WdigestOffsets.csv]
mov r9d, 0x104
lea r8, [rsp + 0x50]
movups xmm1, xmmword [0x14000bdf8]
mov edx, r9d
movups xmmword [rbp + 0x780], xmm0
movsd xmm0, qword [0x14000be08]
movsd qword [rbp + 0x7a0], xmm0
movups xmmword [rbp + 0x790], xmm1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea r9d, [r14 + 0x14]
mov edx, 0x104
lea r8, [rbp + 0x780]
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
jmp 0x140001a62
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001c38
test al, 0x10
jne 0x140001c38
lea rcx, str.___Loading_wdigest_related_offsets_from_the_CSV_file
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
lea rax, [rbp + 0x7b0]
mov qword [rbx + 0x20], rax
call fcn.1400032c0
mov rdx, rax
lea rcx, str.___Systems_wdigest.dll_file_version_is:__s_n
mov rbx, rax
call fcn.140001480
lea r8, [0x14000d420]
mov qword [rsp + 0x30], r14
lea rdx, [rbp + 0x7b0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r8, qword [rsp + 0x30]
test r8, r8
jne 0x140001ae8
lea rcx, str.____Offset_CSV_file_not_found___invalid._A_valid_offset_file_must_be_specifed_
call sub.api_ms_win_crt_stdio_l1_1_0.dll__putws
jmp 0x140001c02
mov edx, 0x800
lea rcx, [rbp + 0xbc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
test rax, rax
je 0x140001bf7
lea rcx, [rbp + 0xbc0]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], r14
lea rdx, [0x14000d4e8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0x9c0]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x9c0]
mov rax, rbx
sub r8, rbx
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001b64
add rax, 2
test ecx, ecx
jne 0x140001b50
test edx, edx
je 0x140001b8a
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0xbc0]
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
test rax, rax
jne 0x140001b03
jmp 0x140001bf7
mov rdx, rbx
lea rcx, str.___Offsets_are_available_for_this_version_of_wdigest.dll___s___n
call fcn.140001480
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, [0x14000d4e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov r8d, 0x10
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoull]
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, [0x14000d4e8]
mov qword [0x14001ffc0], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov r8d, 0x10
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoull]
mov qword [0x14001ffc8], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp qword [0x14001ffc0], r14
je 0x140001c29
cmp qword [0x14001ffc8], r14
je 0x140001c29
lea rcx, str.___Wdigest_offsets_were_loaded_from_the_CSV_file_for_the_version_of_wdigest_in_use.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
mov eax, r14d
jmp 0x140001de6
lea rcx, str.____Offsets_are_missing_from_the_CSV_for_the_version_of_wdigest_in_use.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
jmp 0x140001c4f
lea rdx, [rbp + 0x7b0]
lea rcx, str.____Wdigest_offsets_file_not_present_at__s_n
call fcn.140001480
mov qword [rbx + 0x20], r14
mov rax, qword [rdi]
test byte [rax + 8], 4
je 0x140001dd4
lea rcx, str.___Downloading_wdigest_offsets_from_the_MS_Symbol_Server__will_drop_a_.pdb_file_in_current_directory_
mov qword [rsp + 0x1cf8], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
call fcn.140003210
mov rcx, rax
call fcn.140002a20
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1400051b0
mov rcx, rax
mov rdi, rax
call fcn.140007b20
mov rcx, qword [rdi + 0x80]
mov rbx, rax
test rcx, rcx
je 0x140001cb1
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x80], r14
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rsp + 0x1cf8]
test rbx, rbx
je 0x140001da3
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x830
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov rcx, qword [rbx + 0x10]
lea r8, str.g_fParameter_UseLogonCredential
mov dword [rsp + 0x50], 0x58
mov dword [rbp - 0x60], 0x7d1
call qword [sym.imp.dbghelp.dll_SymGetTypeFromName]
test eax, eax
je 0x140001d1b
mov rax, qword [rbp - 0x78]
sub rax, qword [rbx + 8]
jmp 0x140001d1e
mov rax, r14
xor edx, edx
mov qword [0x14001ffc0], rax
mov r8d, 0x830
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov rcx, qword [rbx + 0x10]
lea r8, str.g_IsCredGuardEnabled
mov dword [rsp + 0x50], 0x58
mov dword [rbp - 0x60], 0x7d1
call qword [sym.imp.dbghelp.dll_SymGetTypeFromName]
test eax, eax
je 0x140001d6e
mov rax, qword [rbp - 0x78]
sub rax, qword [rbx + 8]
jmp 0x140001d71
mov rax, r14
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov qword [0x14001ffc8], rax
call qword [sym.imp.dbghelp.dll_SymUnloadModule64]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.dbghelp.dll_SymCleanup]
mov rcx, qword [rbx]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rbx
mov qword [rbx], r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
cmp qword [0x14001ffc0], r14
je 0x140001dc7
cmp qword [0x14001ffc8], r14
je 0x140001dc7
lea rcx, str.___Downloading_wdigest_offsets_succeeded_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
mov eax, r14d
jmp 0x140001de6
lea rcx, str.____Downloading_wdigest_offsets_from_the_internet_failed_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
lea rcx, str.____The_wdigest_offsets_required_couldnt_be_retrieve_using_any_of_the_methods_specified_n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
mov eax, 5
mov rcx, qword [rbp + 0x1bc0]
xor rcx, rsp
call fcn.140009ae0
mov rbx, qword [rsp + 0x1d00]
add rsp, 0x1cd0
pop r14
pop rdi
pop rbp
ret