Function at 0x4af580
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x90], edx
lea esi, [ebp - 0x84]
mov dword [ebp - 0x8c], edi
push esi
push ebx
mov eax, dword [edi + 4]
mov dword [ebp - 0x84], 0x40
mov ecx, dword [eax + 0x49c]
mov eax, dword [eax + 0x4a0]
add eax, 0x70
push eax
push edx
call fcn.004a73f0
test eax, eax
jne 0x4af611
cmp dword [ebp - 0x84], 0x40
jne 0x4af611
cmp dword [ebx], 0x7d4
jne 0x4af603
test byte [ebx + 8], 1
jne 0x4af603
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x10]
jmp 0x4af619
xor eax, eax
mov dword [ebp - 0x84], eax
mov esi, dword [edi + 0xac]
xorps xmm0, xmm0
mov edi, dword [edi + 0xa0]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb8], eax
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xbc], esi
push ecx
mov eax, dword [ecx + 0x4a4]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xbc]
push eax
push 0x4af400
push dword [ebp - 0x90]
mov dword [ebp - 0xb0], 0xffffffff
mov ecx, dword [ecx + 0x49c]
call fcn.004a7580
test eax, eax
je 0x4af6ad
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xac]
xor eax, eax
test ecx, ecx
je 0x4af6d1
nop dword [eax]
mov dword [edi + eax*4], esi
inc eax
mov ecx, dword [ebp - 0xac]
add esi, 0x28
cmp eax, ecx
jb 0x4af6c0
push 0x4af510
push 4
push ecx
push edi
call fcn.004e2bb0
xor edx, edx
mov dword [ebp - 0x5c], 0
add esp, 0x10
mov dword [ebp - 0x60], edx
xor esi, esi
mov dword [ebp - 0x80], 0x6a09e667
mov dword [ebp - 0x7c], 0xbb67ae85
mov dword [ebp - 0x78], 0x3c6ef372
mov dword [ebp - 0x74], 0xa54ff53a
mov dword [ebp - 0x70], 0x510e527f
mov dword [ebp - 0x6c], 0x9b05688c
mov dword [ebp - 0x68], 0x1f83d9ab
mov dword [ebp - 0x64], 0x5be0cd19
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xac], edx
jbe 0x4af74d
lea eax, [ebp - 0x80]
push eax
push 0x28
push dword [edi + esi*4]
call fcn.004b2370
inc esi
cmp esi, dword [ebp - 0xac]
jb 0x4af733
mov edx, dword [ebp - 0x60]
lea eax, [edx*8]
mov ecx, edx
bswap eax
mov dword [ebp - 0x98], eax
and edx, 0x3f
mov eax, dword [ebp - 0x5c]
shl eax, 3
shr ecx, 0x1d
or ecx, eax
lea eax, [ebp - 0x80]
bswap ecx
push eax
mov dword [ebp - 0x94], ecx
mov eax, 0x38
mov ecx, 0x78
sub eax, edx
sub ecx, edx
cmp edx, 0x38
cmovae eax, ecx
push eax
push 0x50ace0
call fcn.004b2370
lea eax, [ebp - 0x80]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
call fcn.004b2370
lea eax, [ebp - 0x80]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
call fcn.004b2370
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004d6ed0
mov eax, dword [ebp - 0x80]
mov ecx, 0xd8
mov dword [ebx + 0x20], eax
add esp, 0xc
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x84]
and eax, 0xfffffffe
mov dword [ebx], 0x7d4
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x9c]
cmp eax, ecx
mov dword [ebx + 4], 0
cmova eax, ecx
mov dword [ebx + 0x1c], 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x88]
mov dword [ebx + 0x10], eax
movzx eax, word [ebp - 0xa8]
shl ecx, 0x10
or ecx, eax
movzx eax, word [ebp - 0xa0]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x14], ecx
push 0x40
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x49c]
mov eax, dword [eax + 0x4a0]
push ebx
add eax, 0x70
push eax
push dword [ebp - 0x90]
call fcn.004a72a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 8