Function at 0x46d5e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x94], esi
push edi
test eax, eax
je 0x46d661
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 3
ja 0x46d661
test esi, esi
je 0x46d679
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d620
mov eax, dword [ebx + 0x14]
sub ecx, edx
sar ecx, 1
lea edx, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
mov ecx, esi
push dword [eax + 0x32c]
call fcn.00453850
mov edi, dword [ebp - 0x88]
add esp, 4
test edi, edi
je 0x46d659
inc edi
cmp edi, 0x80
jbe 0x46d67b
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 0x10
xor edi, edi
mov ecx, dword [ebx + 0x14]
lea eax, [edi + edi]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x84]
mov ecx, dword [ecx + 0x4a8]
call fcn.00409600
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x8c], eax
add eax, 0x20
mov esi, eax
mov dword [ebp - 0x9c], eax
mov dword [esi], 0x7d0
mov dword [esi + 4], 2
add esi, 8
push esi
push dword [ebp - 0x84]
call fcn.004ae8f0
mov eax, dword [ebx + 0x14]
add esi, 0x20
push esi
mov eax, dword [eax + 0x4c8]
mov ecx, eax
mov dword [ebp - 0x90], eax
call fcn.0047ac20
test eax, eax
je 0x46d703
mov ecx, dword [ebp - 0x90]
push esi
call fcn.0047acd0
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [edi + edi]
push eax
push dword [ebp - 0x94]
lea eax, [esi + 0xc]
mov dword [esi + 8], edi
push eax
call fcn.004d6950
mov edi, dword [ebp - 0x84]
add esp, 0xc
mov eax, dword [ebx + 0x4c]
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x46d7a2
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x5c], 0
push ecx
push 0x48
push eax
mov dword [ebp - 0x60], 0
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], 0
call fcn.004b2370
lea eax, [ebp - 0x80]
push eax
call fcn.004b2880
push dword [ebp - 0x8c]
lea eax, [ebp - 0x80]
push eax
call fcn.004ae8f0
mov eax, dword [ebp - 0x88]
add eax, 0x4c
push eax
call fcn.004d9a7e
mov esi, eax
add esp, 4
test esi, esi
je 0x46d7eb
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0xe26af5e
mov eax, dword [ebp - 0x98]
mov dword [esi + 4], 0x7d0
mov dword [ebp - 0x84], 0
cmp eax, 6
je 0x46d80c
cmp eax, 2
jne 0x46d816
mov dword [ebp - 0x84], 2
mov eax, dword [ebp - 0x88]
add eax, 0x34
push eax
push dword [ebp - 0x9c]
lea eax, [esi + 0x18]
push eax
call fcn.004d6950
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov ecx, dword [ebx + 0x14]
add eax, 0x4c
push dword [ebp - 0x84]
mov ecx, dword [ecx + 0x470]
push eax
push esi
push dword [ebp - 0x8c]
call fcn.0041aca0
push esi
call fcn.004d9a63
add esp, 4
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x10], 0
jne 0x46d885
push dword [ebp + 0xc]
push 2
push edi
push ecx
mov ecx, dword [ebx + 0x14]
mov ecx, dword [ecx + 0x4a8]
call fcn.004094a0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10