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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x1dd0]
mov eax, 0x1ed0
call fcn.1400093d0
sub rsp, rax
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rbp + 0x1dc0], rax
mov rdi, qword [rcx]
lea r14, [0x14001cb10]
xor r12d, r12d
mov rsi, rcx
test byte [rdi + 8], 2
lea rbx, [r12 - 1]
je 0x140001c54
xor edx, edx
lea rcx, [rbp + 0x7a0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x9b0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x9b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8, qword [rdi + 0x18]
lea rcx, [rbp + 0x7a0]
test r8, r8
jne 0x140001a1d
movups xmm0, xmmword [str.WdigestOffsets.csv]
mov r9d, 0x104
lea r8, [rbp + 0x9b0]
movups xmm1, xmmword [0x14000adb8]
mov edx, r9d
movups xmmword [rbp + 0x770], xmm0
movsd xmm0, qword [0x14000adc8]
movsd qword [rbp + 0x790], xmm0
movups xmmword [rbp + 0x780], xmm1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea r9d, [r12 + 0x14]
mov edx, 0x104
lea r8, [rbp + 0x770]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
jmp 0x140001a28
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001c3d
test al, 0x10
jne 0x140001c3d
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 + 0x7a0]
mov qword [rdi + 0x18], rax
call fcn.1400028e0
mov rdx, rax
lea rcx, str.___Systems_wdigest.dll_file_version_is:__s_n
call fcn.140001430
lea r8, [0x14000c060]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x7a0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r8, qword [rsp + 0x20]
test r8, r8
jne 0x140001aab
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 0x140001c07
mov edx, 0x800
lea rcx, [rbp + 0xdc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
test rax, rax
je 0x140001bfc
nop word [rax + rax]
lea rcx, [rbp + 0xdc0]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
lea r8, [rsp + 0x28]
mov qword [rsp + 0x28], r12
lea rdx, [0x14000c0bc]
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 + 0xbc0]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, rbx
nop
inc rax
cmp word [r14 + rax*2], r12w
jne 0x140001b10
test rax, rax
jne 0x140001b67
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
lea r8, str.wdigest.dll
mov edx, 0x104
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
lea rdx, [rbp + 0xbc0]
mov rcx, r14
call fcn.140006f20
test eax, eax
je 0x140001b9c
mov r8, qword [rsp + 0x20]
lea rcx, [rbp + 0xdc0]
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
test rax, rax
jne 0x140001ad0
jmp 0x140001bfc
lea rcx, str._n_LoadWdigestOffsetsFromFile__Good_wdigest_checksum
mov qword [rsp + 0x1f08], r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll__putws
lea rdi, [0x14001caf8]
lea r15, [0x14001cb08]
nop
lea r8, [rsp + 0x28]
xor ecx, ecx
lea rdx, [0x14000c0bc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov r8d, 0x10
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoull]
mov qword [rdi], rax
add rdi, 8
cmp rdi, r15
jl 0x140001bc0
mov r15, qword [rsp + 0x1f08]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp qword [0x14001caf8], r12
je 0x140001c2e
cmp qword [0x14001cb00], r12
je 0x140001c2e
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, r12d
jmp 0x140001e2b
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 0x140001c54
lea rdx, [rbp + 0x7a0]
lea rcx, str.____Wdigest_offsets_file_not_present_at__s_n
call fcn.140001430
mov qword [rdi + 0x18], r12
mov rax, qword [rsi]
test byte [rax + 8], 4
je 0x140001e19
lea rcx, str.___Downloading_wdigest_offsets_from_the_MS_Symbol_Server__will_drop_a_.pdb_file_in_current_directory_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
nop
inc rbx
cmp word [r14 + rbx*2], r12w
jne 0x140001c70
test rbx, rbx
jne 0x140001cc7
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
lea r8, str.wdigest.dll
mov edx, 0x104
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
mov rcx, r14
call fcn.140002740
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140004000
mov rcx, rax
mov rdi, rax
call fcn.1400068f0
mov rcx, qword [rdi + 0x70]
mov rbx, rax
test rcx, rcx
je 0x140001cfc
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x70], r12
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
test rbx, rbx
je 0x140001de8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x830
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx + 0x10]
lea r8, str.g_fParameter_UseLogonCredential
mov dword [rsp + 0x40], 0x58
mov dword [rbp - 0x70], 0x7d1
call qword [sym.imp.dbghelp.dll_SymGetTypeFromName]
test eax, eax
je 0x140001d5f
mov rax, qword [rsp + 0x78]
sub rax, qword [rbx + 8]
jmp 0x140001d62
mov rax, r12
xor edx, edx
mov qword [0x14001caf8], rax
mov r8d, 0x830
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx + 0x10]
lea r8, str.g_IsCredGuardEnabled
mov dword [rsp + 0x40], 0x58
mov dword [rbp - 0x70], 0x7d1
call qword [sym.imp.dbghelp.dll_SymGetTypeFromName]
test eax, eax
je 0x140001db3
mov rax, qword [rsp + 0x78]
sub rax, qword [rbx + 8]
jmp 0x140001db6
mov rax, r12
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov qword [0x14001cb00], 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], r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
cmp qword [0x14001caf8], r12
je 0x140001e0c
cmp qword [0x14001cb00], r12
je 0x140001e0c
lea rcx, str.___Downloading_wdigest_offsets_succeeded_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
mov eax, r12d
jmp 0x140001e2b
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 + 0x1dc0]
xor rcx, rsp
call fcn.1400085d0
mov rbx, qword [rsp + 0x1f10]
add rsp, 0x1ed0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret