Function at 0x18001da98
Capabilities:
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
mov r15, rdx
mov r12d, r13d
mov qword [rax - 0x40], r13
mov qword [rax - 0x48], r13
mov rbx, r13
mov rbp, r13
cmp rdx, r13
je 0x18001dd11
mov qword [rax - 0x58], r13
mov byte [rdx], r13b
mov dword [rax - 0x60], r13d
lea r8d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x68], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001dcbf
cmp rax, r13
je 0x18001dcbf
lea r9d, [r13 + 1]
lea rcx, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, r13d
je 0x18001dcbf
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, r13d
je 0x18001dcbf
lea rdx, [rsp + 0xa8]
mov rcx, rdi
mov dword [rsp + 0xa8], r13d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x18001dcbf
mov r9d, dword [rsp + 0xa8]
lea r8d, [r13 + 2]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp rax, r13
je 0x18001dcbf
cmp rax, 0xffffffffffffffff
je 0x18001dcbf
lea r14d, [r13 + 4]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, r14d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
cmp rax, r13
je 0x18001dcbf
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, esi
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, r13d
je 0x18001dcbf
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x98], r14d
lea r14d, [r13 + 2]
lea r9, [rsp + 0x98]
mov edx, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, r13d
je 0x18001dcbf
mov ecx, dword [rsp + 0x98]
call fcn.18004a00c
mov rsi, rax
cmp rax, r13
je 0x18001dcbf
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x98]
mov r8, rax
mov edx, r14d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, r13d
je 0x18001dcb7
mov eax, dword [rsp + 0x98]
cmp eax, 0x80
jae 0x18001dcb7
mov r14d, r13d
cmp eax, r13d
jbe 0x18001dcb1
mov r13, rsi
movzx r9d, byte [r13]
mov edx, 0x100
mov ecx, r12d
lea r8, str._02x
sub edx, r12d
add rcx, r15
call fcn.180053de8
inc r14d
add r12d, 2
inc r13
cmp r14d, dword [rsp + 0x98]
jb 0x18001dc7b
xor r13d, r13d
mov r12d, 1
mov rcx, rsi
call fcn.1800520c4
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x18001dccf
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
cmp rcx, r13
je 0x18001dce1
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp rbp, r13
je 0x18001dcef
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp rbx, r13
je 0x18001dd03
cmp rbx, 0xffffffffffffffff
je 0x18001dd03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r13
je 0x18001dd11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret