Function at 0x140017320
Capabilities:
Create new key via cryptacquirecontext
Get file size
Hash data via wincrypt
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov r15, r8
mov qword [rax - 0x48], rsi
mov r12, rdx
mov dword [rax - 0x50], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x58], 3
lea r8d, [rsi + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbx, rax
test rax, rax
jne 0x140017386
mov rcx, qword [rsp + 0x78]
lea r8, str.onecoreenduserupgradeenablers_shellhelpers_filehelper.cpp
lea edx, [rsi + 0xd]
call fcn.140003b48
mov esi, eax
jmp 0x140017507
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], esi
mov rcx, rbx
lea r8d, [r9 + 2]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
jne 0x1400173b1
lea edx, [rax + 0x15]
jmp 0x1400174d2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x1400173d9
lea edx, [rax + 0x18]
jmp 0x1400174d2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1400173f6
mov edx, 0x1b
jmp 0x1400174d2
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.CRYPTSP.dll_CryptAcquireContextW]
test eax, eax
jne 0x140017420
lea edx, [rax + 0x22]
jmp 0x1400174d2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.CRYPTSP.dll_CryptCreateHash]
test eax, eax
jne 0x14001744f
lea edx, [rax + 0x29]
jmp 0x1400174d2
mov rcx, qword [rsp + 0x98]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
call qword [sym.imp.CRYPTSP.dll_CryptHashData]
test eax, eax
jne 0x14001746f
lea edx, [rax + 0x2a]
jmp 0x1400174d2
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
test eax, eax
jne 0x140017481
lea edx, [rax + 0x2c]
jmp 0x1400174d2
mov rcx, qword [rsp + 0x98]
mov r9, r15
mov r8, r12
mov dword [rsp + 0x20], esi
mov edx, 2
call qword [sym.imp.CRYPTSP.dll_CryptGetHashParam]
test eax, eax
jne 0x1400174a7
lea edx, [rax + 0x2e]
jmp 0x1400174d2
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.CRYPTSP.dll_CryptDestroyHash]
test eax, eax
jne 0x1400174be
lea edx, [rax + 0x2f]
jmp 0x1400174d2
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.CRYPTSP.dll_CryptReleaseContext]
test eax, eax
jne 0x1400174e5
lea edx, [rax + 0x31]
mov rcx, qword [rsp + 0x78]
lea r8, str.onecoreenduserupgradeenablers_shellhelpers_filehelper.cpp
call fcn.140003b48
mov esi, eax
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400174f8
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp rbx, 0xffffffffffffffff
je 0x140017507
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret