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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1bc0]
mov eax, 0x1cc0
call fcn.140009d20
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1bb0], rax
mov rbx, qword [rcx]
xor r14d, r14d
mov rdi, rcx
test byte [rbx + 8], 2
je 0x140001ccc
xor edx, edx
lea rcx, [rbp + 0x7a0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8, qword [rbx + 0x18]
lea rcx, [rbp + 0x7a0]
test r8, r8
jne 0x140001adc
movups xmm0, xmmword [str.WdigestOffsets.csv]
mov r9d, 0x104
lea r8, [rsp + 0x40]
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, [r14 + 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 0x140001ae7
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 0x140001cb5
test al, 0x10
jne 0x140001cb5
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 [rbx + 0x18], rax
call fcn.140002b70
mov rdx, rax
lea rcx, str.___Systems_wdigest.dll_file_version_is:__s_n
mov rbx, rax
call fcn.1400014f0
lea r8, [0x14000c060]
mov qword [rsp + 0x20], r14
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 0x140001b6d
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 0x140001c7f
mov edx, 0x800
lea rcx, [rbp + 0xbb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
test rax, rax
je 0x140001c74
nop dword [rax + rax]
lea rcx, [rbp + 0xbb0]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
lea r8, [rsp + 0x28]
mov qword [rsp + 0x28], r14
lea rdx, [0x14000c128]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edx, 0x100
lea rcx, [rbp + 0x9b0]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x9b0]
mov rax, rbx
sub r8, rbx
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001bf4
add rax, 2
test ecx, ecx
jne 0x140001be0
test edx, edx
je 0x140001c1a
mov r8, qword [rsp + 0x20]
lea rcx, [rbp + 0xbb0]
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
test rax, rax
jne 0x140001b90
jmp 0x140001c74
mov rdx, rbx
lea rcx, str.___Offsets_are_available_for_this_version_of_wdigest.dll___s___n
call fcn.1400014f0
lea rbx, [0x14001caf8]
lea rsi, [0x14001cb08]
nop word [rax + rax]
lea r8, [rsp + 0x28]
xor ecx, ecx
lea rdx, [0x14000c128]
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 [rbx], rax
add rbx, 8
cmp rbx, rsi
jl 0x140001c40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp qword [0x14001caf8], r14
je 0x140001ca6
cmp qword [0x14001cb00], r14
je 0x140001ca6
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 0x140001e4f
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 0x140001ccc
lea rdx, [rbp + 0x7a0]
lea rcx, str.____Wdigest_offsets_file_not_present_at__s_n
call fcn.1400014f0
mov qword [rbx + 0x18], r14
mov rax, qword [rdi]
test byte [rax + 8], 4
je 0x140001e3d
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]
call fcn.140002ac0
mov rcx, rax
call fcn.140002920
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140004100
mov rcx, rax
mov rdi, rax
call fcn.140006a50
mov rcx, qword [rdi + 0x70]
mov rbx, rax
test rcx, rcx
je 0x140001d20
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x70], 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
test rbx, rbx
je 0x140001e0c
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 0x140001d83
mov rax, qword [rsp + 0x78]
sub rax, qword [rbx + 8]
jmp 0x140001d86
mov rax, r14
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 0x140001dd7
mov rax, qword [rsp + 0x78]
sub rax, qword [rbx + 8]
jmp 0x140001dda
mov rax, r14
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], r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
cmp qword [0x14001caf8], r14
je 0x140001e30
cmp qword [0x14001cb00], r14
je 0x140001e30
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 0x140001e4f
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 + 0x1bb0]
xor rcx, rsp
call fcn.140008f20
lea r11, [rsp + 0x1cc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret