Function at 0x1401c7800
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140398130]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x70], r8
xor esi, esi
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call fcn.1403163f0
lea r8d, [rsi + 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.1400f5b10
nop
cmp qword [rbp + 0x30], rsi
je 0x1401c7ab5
lea rax, vtable.sw::templates::basic_sha512_char_.0
mov qword [rbp + 0xb0], rax
movabs rax, 0x6a09e667f3bcc908
mov qword [rbp + 0xc0], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rbp + 0xc8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rbp + 0xd0], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rbp + 0xd8], rax
movabs rax, 0x510e527fade682d1
mov qword [rbp + 0xe0], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rbp + 0xe8], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rbp + 0xf0], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rbp + 0xf8], rax
mov dword [rbp + 0x100], esi
mov qword [rbp + 0xb8], rsi
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x104]
call fcn.1403163f0
nop
mov rcx, qword [rbp - 0x60]
movsxd rax, dword [rcx + 4]
cmp dword [rbp + rax - 0x50], esi
jne 0x1401c7985
nop dword [rax]
mov r8d, 0x40
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x60]
call fcn.1400f20f0
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
cmp dword [rcx + rdx + 0x10], 0
jne 0x1401c7981
mov r8d, 0x40
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0xb0]
call fcn.1400a2f10
mov rcx, qword [rbp - 0x60]
movsxd rax, dword [rcx + 4]
cmp dword [rbp + rax - 0x50], 0
je 0x1401c7930
jmp 0x1401c7985
mov rcx, qword [rbp - 0x60]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x50], 1
jne 0x1401c79ac
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x140377130]
movdqu xmmword [rbp - 0x78], xmm1
mov byte [rsp + 0x78], 0
jmp 0x1401c79da
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x1401c79c8
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0xb0]
call fcn.1400a2f10
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0xb0]
call fcn.1400a29f0
nop
lea rcx, [rbp - 0x50]
call fcn.14007a950
test rax, rax
jne 0x1401c7a1a
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x18], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x50]
and eax, 0x17
mov dword [rbp + rcx - 0x50], eax
mov edx, dword [rbp + rcx - 0x4c]
and edx, eax
jne 0x1401c7b6a
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x140377130]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
lea rcx, [rsp + 0x78]
call fcn.140087070
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.1400797c0
mov rax, qword [rbp - 0x60]
movsxd rdx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx - 0x60], rax
mov rdx, qword [rbp - 0x60]
movsxd r8, dword [rdx + 4]
lea r9d, [r8 - 0x18]
mov dword [rbp + r8 - 0x64], r9d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
call fcn.1402bd96c
nop
jmp 0x1401c7b3d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x140375240]
mov rcx, rbx
call fcn.140086c40
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.1400797c0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x64], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
call fcn.1402bd96c
nop
mov rcx, rdi
call fcn.140085e10
mov rax, rbx
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1403139c0
mov rbx, qword [rsp + 0x380]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x1401c7b78
lea rbx, str.ios_base::badbit_set
jmp 0x1401c7b8d
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14007ad90
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14007abe0
lea rdx, [0x1403959b8]
lea rcx, [rsp + 0x48]
call fcn.140315bac
int3