Function at 0x488d00
Capabilities:
Hash data using sha512

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x390
movzx eax, byte [0x574a24]
mov esi, edx
mov ebx, ecx
movzx eax, al
push eax
call fcn.00478240
add esp, 4
cmp al, 2
jne 0x4892b5
movsd xmm2, qword [0x5255c0]
movsd xmm1, qword [0x5255c8]
xorps xmm0, xmm0
lea edi, [esp + 0x60]
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movsd qword [esp + 0xe0], xmm2
movsd qword [esp + 0xe8], xmm1
movsd xmm2, qword [0x5255d0]
movsd xmm1, qword [0x5255d8]
movsd qword [esp + 0xf0], xmm2
movsd qword [esp + 0xf8], xmm1
movsd xmm2, qword [0x5255e0]
movsd xmm1, qword [0x5255e8]
movsd qword [esp + 0x100], xmm2
movsd qword [esp + 0x108], xmm1
movsd xmm2, qword [0x5255f0]
movsd xmm1, qword [0x5255f8]
movsd qword [esp + 0x110], xmm2
movsd qword [esp + 0x118], xmm1
mov dword [esp + 0x124], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x128], 0x5255c0
mov dword [esp + 0x130], 0
push 0x20
push esi
push edi
call fcn.004806d0
add esp, 0xc
lea eax, [esp + 0x228]
push 0xd8
push edi
push eax
call fcn.004f5b80
add esp, 0xc
mov eax, dword [esp + 0x2f0]
lea edx, [esp + 0x330]
lea esi, [esp + 0x2a8]
mov ecx, 0x14
mov edi, edx
mov eax, dword [eax + 0x48]
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x81
jae 0x4892d3
lea ecx, [esp + 0x18c]
push dword [esp + 0x2f8]
push eax
lea eax, [esp + 0x230]
push eax
push edx
push ecx
call fcn.004803b0
add esp, 0x14
mov eax, dword [esp + 0x1cc]
mov esi, dword [eax + 0x40]
cmp esi, 0x41
jae 0x4892d3
cmp esi, 0x1f
lea edi, [esp + 0x60]
jbe 0x4892d3
movsd xmm1, qword [esp + 0x19c]
movsd xmm0, qword [esp + 0x1a4]
movsd xmm2, qword [esp + 0x18c]
lea eax, [esp + 0x228]
movsd qword [esp + 0x238], xmm1
movsd xmm1, qword [esp + 0x194]
movsd qword [esp + 0x240], xmm0
movsd qword [esp + 0x228], xmm2
movsd qword [esp + 0x230], xmm1
push eax
call fcn.004e8890
add esp, 4
movsd xmm1, qword [esp + 0x238]
movsd xmm0, qword [esp + 0x240]
movsd xmm2, qword [esp + 0x228]
movsd qword [esp + 0x10], xmm1
movsd xmm1, qword [esp + 0x230]
movsd qword [esp + 0x18], xmm0
movsd qword [esp], xmm2
movsd qword [esp + 8], xmm1
movzx eax, byte [0x574a24]
movzx eax, al
push eax
call fcn.00478240
add esp, 4
cmp al, 2
jne 0x4892c4
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xf0], xmm0
push 0
push eax
push edi
call fcn.004e8770
add esp, 0xc
movsd xmm1, qword [esp + 0x10]
movsd xmm0, qword [esp + 0x18]
movsd xmm2, qword [esp]
cmp esi, 0x40
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [esp + 8]
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x48], xmm1
jne 0x4892d3
movsd xmm1, qword [esp + 0x1bc]
movsd xmm0, qword [esp + 0x1c4]
movsd xmm2, qword [esp + 0x1ac]
movsd qword [ebx + 0x30], xmm1
movsd xmm1, qword [esp + 0x1b4]
movsd qword [ebx + 0x38], xmm0
movsd qword [ebx + 0x20], xmm2
movsd qword [ebx + 0x28], xmm1
push 0xa0
push edi
lea eax, [esp + 0x230]
push eax
call fcn.004f5b80
add esp, 0xc
movsd xmm0, qword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x70]
lea eax, [esp + 0x160]
mov dword [esp + 0x1f4], 0
mov dword [esp + 0x1f0], 0
lea edi, [esp + 0x1d0]
movsd qword [esp + 0x320], xmm0
movaps xmm0, xmmword [esp + 0x60]
movaps xmmword [esp + 0x310], xmm1
movsd xmm1, qword [esp + 0x258]
movaps xmmword [esp + 0x300], xmm0
movsd xmm0, qword [esp + 0x270]
movsd qword [esp + 0x140], xmm1
movsd xmm1, qword [esp + 0x280]
movsd qword [esp + 0x158], xmm0
movsd xmm0, qword [esp + 0x268]
movsd qword [esp + 0x168], xmm1
movsd qword [esp + 0x150], xmm0
movsd xmm0, qword [esp + 0x260]
movsd qword [esp + 0x148], xmm0
movsd xmm0, qword [esp + 0x250]
movsd qword [esp + 0x138], xmm0
movsd xmm0, qword [esp + 0x298]
movsd qword [esp + 0x180], xmm0
movsd xmm0, qword [esp + 0x290]
movsd qword [esp + 0x178], xmm0
movsd xmm0, qword [esp + 0x288]
movsd qword [esp + 0x170], xmm0
movsd xmm0, qword [esp + 0x278]
movsd qword [esp + 0x160], xmm0
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x1e0], xmm0
movaps xmmword [esp + 0x1d0], xmm0
push eax
push edi
call fcn.004e83c0
add esp, 8
xorps xmm0, xmm0
mov dword [esp + 0x224], 0
mov dword [esp + 0x220], 0
lea eax, [esp + 0x300]
lea esi, [esp + 0x200]
movaps xmmword [esp + 0x210], xmm0
movaps xmmword [esp + 0x200], xmm0
push edi
push eax
push esi
call fcn.004e83f0
add esp, 0xc
xorps xmm0, xmm0
mov dword [esp + 0x354], 0
mov dword [esp + 0x350], 0
lea eax, [esp + 0x138]
movaps xmmword [esp + 0x340], xmm0
movaps xmmword [esp + 0x330], xmm0
push edi
push eax
lea edi, [esp + 0x338]
push edi
call fcn.004e83f0
add esp, 0xc
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004e8480
add esp, 8
push esi
call fcn.004e83d0
add esp, 4
shl al, 7
movsd xmm2, qword [esp + 0x58]
xor byte [esp + 0x3f], al
movsd xmm1, qword [esp + 0x30]
movsd xmm0, qword [esp + 0x38]
movsd xmm3, qword [esp + 0x20]
movsd qword [ebx + 0x50], xmm1
movsd xmm1, qword [esp + 0x28]
movsd qword [ebx + 0x58], xmm0
movsd qword [ebx + 0x40], xmm3
movsd qword [ebx + 0x48], xmm1
movsd xmm1, qword [esp + 0x50]
movsd qword [ebx + 0x18], xmm2
movsd xmm2, qword [esp + 0x40]
movsd qword [ebx + 0x10], xmm1
movsd xmm1, qword [esp + 0x48]
movsd qword [ebx], xmm2
movsd qword [ebx + 8], xmm1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x574a24
call fcn.00504f00
jmp 0x488d2e
mov ecx, 0x574a24
call fcn.00504f00
jmp 0x488f60
ud2