Function at 0x1400303e8
Capabilities:
Get file size
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x71], rcx
mov qword [rbp + 0xf], rdx
xor r12d, r12d
mov qword [rbp - 0x71], r12
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [0x14006b6e8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, 0x80070000
lea r13d, [r12 + 7]
test eax, eax
jne 0x14003049a
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r12
mov word [rbp - 0x61], r12w
lea r8d, [r12 + 0xf]
lea rdx, [0x140048d88]
lea rcx, [rbp - 0x69]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
lea rdx, [rbp - 0x69]
call fcn.140012d24
lea r14, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x1400304aa
mov rcx, qword [r14]
jmp 0x1400304ad
mov rcx, r14
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 0x31], rax
cmp rax, 0xffffffffffffffff
jne 0x140030518
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r12
mov word [rbp - 0x61], r12w
lea r8d, [rax + 0xb]
lea rdx, str.CreateFile
lea rcx, [rbp - 0x69]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
lea rdx, [rbp - 0x69]
call fcn.140012d24
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14003056a
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r12
mov word [rbp - 0x61], r12w
mov r8d, 0xb
lea rdx, [0x140048bf8]
lea rcx, [rbp - 0x69]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rbp - 0x69]
call fcn.140012d24
mov r9, qword [rbp - 0x71]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.14002e1d0
mov dword [rbp - 0x79], r12d
mov edx, 4
mov dword [rbp - 0x41], edx
mov dword [rsp + 0x20], r12d
lea r9, [rbp - 0x41]
lea r8, [rbp - 0x79]
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400305e0
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r12
mov word [rbp - 0x61], r12w
lea r8d, [rax + 0x11]
lea rdx, [0x140048da8]
lea rcx, [rbp - 0x69]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rbp - 0x69]
call fcn.140012d24
mov ecx, dword [rbp - 0x79]
lea rdx, [0x140042a1b]
call fcn.14001233c
mov rdi, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140030721
mov dword [rsp + 0x20], r12d
lea r9, [rbp - 0x79]
mov r8, rax
mov edx, 2
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14003065c
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r12
mov word [rbp - 0x61], r12w
lea r8d, [rax + 0x11]
lea rdx, [0x140048da8]
lea rcx, [rbp - 0x69]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rbp - 0x69]
call fcn.140012d24
lea rcx, [rbp - 0x19]
call fcn.140009224
nop
mov r8d, dword [rbp - 0x79]
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140009540
lea rcx, [rbp - 0x19]
call fcn.1400092e0
mov qword [r15 + 0x20], r13
mov qword [r15 + 0x18], r12
mov word [r15 + 8], r12w
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x140030690
mov rdx, rax
mov rcx, r15
call fcn.1400053ec
nop
lea rcx, [rbp - 0x19]
call fcn.140009288
nop
mov rcx, rdi
call fcn.1400110f8
nop
cmp rbx, 0xffffffffffffffff
je 0x1400306c9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x1400306d8
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp - 0x71], r12
cmp qword [rsi + 0x20], 8
jb 0x1400306eb
mov rcx, qword [r14]
call fcn.1400110f8
mov qword [rsi + 0x20], r13
mov qword [rsi + 0x18], r12
mov word [r14], r12w
mov rax, r15
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140012560
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x69]
call fcn.140011074
lea rdx, [0x140059488]
lea rcx, [rbp - 0x69]
call sub.msvcrt.dll__CxxThrowException
int3