Function at 0x501230
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x535530]
mov eax, dword [ebx + 8]
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x2c], eax
movaps xmm0, xmmword [0x535520]
mov eax, dword [ebx + 0xc]
movups xmmword [ebp - 0x15c], xmm0
push esi
movaps xmm0, xmmword [0x535550]
mov esi, 0x20
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x28], eax
lea eax, [ecx + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x238], ecx
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movaps xmm0, xmmword [0x535540]
push edi
mov dword [ebp - 0x134], 2
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x164], 3
mov dword [ebp - 0x160], 3
mov dword [ebp - 0x200], esi
movaps xmmword [ebp - 0x260], xmm0
mov dword [ebp - 0x23c], eax
push 0x8a
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x11c], 0xffffff
lea eax, [ebp - 0xc0]
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0xffffff
push 0
push eax
mov dword [ebp - 0x114], 0xffffff
mov dword [ebp - 0x110], 0xffffff
mov dword [ebp - 0x10c], 0xffffff
mov dword [ebp - 0x234], 0
movups xmmword [ebp - 0x108], xmm0
mov dword [ebp - 0xe8], 0
movups xmmword [ebp - 0xf8], xmm0
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xd4], xmm0
call fcn.004c6150
mov edx, dword [ebp - 0x23c]
xor eax, eax
xor edi, edi
mov dword [ebp - 0xc], eax
add esp, 0xc
mov word [ebp - 8], ax
xor ecx, ecx
mov dword [ebp - 0x220], eax
mov word [ebp - 9], 0x101
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 0x218], al
mov dword [ebp - 0x230], edx
jmp 0x5013ec
mov edi, dword [ebp - 0x20c]
jmp 0x5013e6
mov edi, dword [ebp - 0x20c]
nop dword [eax]
mov ecx, dword [ebp - 0x204]
mov esi, dword [ebp - 0x200]
cmp dword [ebp - 0x108], 0x2d
mov edx, dword [ebp - 0x21c]
mov eax, edx
jl 0x50141c
cmp dword [ebp - 0x104], 0x2d
jl 0x50141c
cmp dword [ebp - 0x100], 0x2d
jl 0x50141c
cmp dword [ebp - 0xfc], 0x2d
jge 0x5019eb
cmp edi, 0x40
jge 0x5019eb
inc edx
mov dword [ebp - 0x21c], edx
cmp eax, 0x100
jge 0x5019eb
lea eax, [esi + 1]
cmp eax, 0x20
jbe 0x50150b
push 0
push 0x100
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1f8], 0x6a09e667
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1f4], 0xbb67ae85
mov dword [ebp - 0x1f0], 0x3c6ef372
mov dword [ebp - 0x1ec], 0xa54ff53a
mov dword [ebp - 0x1e8], 0x510e527f
mov dword [ebp - 0x1e4], 0x9b05688c
mov dword [ebp - 0x1e0], 0x1f83d9ab
mov dword [ebp - 0x1dc], 0x5be0cd19
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], 0
call fcn.0050eb90
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1f8]
call fcn.0050e960
add esp, 8
xor esi, esi
mov cl, byte [ebp + esi - 0x2c]
inc esi
mov dl, cl
mov byte [ebp - 0x1f9], cl
and dl, 7
mov dword [ebp - 0x200], esi
cmp dl, 5
jne 0x50161d
lea eax, [esi + 1]
cmp eax, 0x20
jbe 0x501604
push 0
push 0x100
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1f8], 0x6a09e667
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1f4], 0xbb67ae85
mov dword [ebp - 0x1f0], 0x3c6ef372
mov dword [ebp - 0x1ec], 0xa54ff53a
mov dword [ebp - 0x1e8], 0x510e527f
mov dword [ebp - 0x1e4], 0x9b05688c
mov dword [ebp - 0x1e0], 0x1f83d9ab
mov dword [ebp - 0x1dc], 0x5be0cd19
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], 0
call fcn.0050eb90
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1f8]
call fcn.0050e960
mov cl, byte [ebp - 0x1f9]
add esp, 8
xor esi, esi
lea eax, [ebp - 0x2c]
add eax, esi
inc esi
mov dword [ebp - 0x200], esi
mov dl, byte [eax]
sar dl, 7
and dl, 1
add dl, 3
jmp 0x501632
cmp dl, 6
jb 0x501626
mov dl, 5
jmp 0x501632
cmp dl, 2
ja 0x50162f
xor dl, dl
jmp 0x501632
add dl, 0xfe
mov al, cl
shr cl, 5
shr al, 3
and al, 3
mov byte [ebp - 0x1f9], cl
movzx edi, al
mov byte [ebp - 0x205], al
mov dword [ebp - 0x24c], edi
movzx esi, cl
cmp dl, 1
je 0x501663
cmp dl, 2
je 0x501663
cmp dl, 5
jne 0x501673
cmp edi, esi
jne 0x501673
mov esi, 8
mov byte [ebp - 0x1f9], 8
movzx ecx, dl
mov dword [ebp - 0x214], ecx
mov dh, byte [ebp + ecx - 0xc]
test dh, dh
je 0x501692
cmp byte [ebp + edi - 0x220], 0
jne 0x5013d7
test dl, dl
je 0x5016ca
movzx ecx, byte [ebp + esi*4 - 0x12c]
mov eax, dword [ebp + edi*4 - 0x12c]
shl ecx, 8
and eax, 0xffff00
add ecx, dword [ebp - 0x214]
shl ecx, 8
cmp eax, ecx
mov ecx, dword [ebp - 0x204]
je 0x5013cf
mov ecx, dword [ebp - 0x214]
lea eax, [esi*4]
mov dword [ebp - 0x22c], 0xffffffff
lea esi, [edi*4]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + eax - 0x108]
lea edi, [ebp - 0x108]
mov dword [ebp - 0x210], esi
add esi, edi
mov dword [ebp - 0x248], esi
mov edi, dword [esi]
cmp edi, eax
mov esi, edi
mov dword [ebp - 0x244], edi
cmovle esi, eax
cmp esi, 0x2d
jge 0x501794
mov eax, dword [ebp + ecx*4 - 0x174]
dec eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0xbd]
add eax, esi
lea edi, [eax + esi*2]
mov eax, dword [ebp - 0x240]
test eax, eax
js 0x50177b
nop word [eax + eax]
cmp byte [edi + eax - 3], 0
jne 0x501776
cmp dl, 1
jne 0x501752
cmp byte [edi + eax], 0
jne 0x501776
test dh, dh
je 0x5019a8
mov ecx, dword [ebp + ecx*4 - 0x144]
imul ecx, dword [ebp - 0x234]
cmp esi, ecx
mov ecx, dword [ebp - 0x214]
jge 0x5019a8
sub eax, 1
jns 0x501740
mov eax, dword [ebp - 0x22c]
test eax, eax
jns 0x50178e
inc esi
add edi, 3
cmp esi, 0x2d
jl 0x501730
mov edi, dword [ebp - 0x244]
lea eax, [edi + 7]
mov edi, dword [ebp - 0x20c]
cmp esi, eax
jg 0x5013e0
mov edi, dword [ebp + ecx*4 - 0x144]
add esi, edi
cmp esi, 0x2d
jg 0x5019d9
mov ecx, dword [ebp - 0x234]
test dh, dh
lea eax, [ecx + 1]
cmove eax, ecx
mov ecx, esi
mov dword [ebp - 0x234], eax
sub ecx, edi
mov eax, dword [ebp - 0x22c]
lea edi, [eax + ecx*2]
mov eax, dword [ebp - 0x248]
add edi, ecx
mov dword [eax], esi
mov esi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x224]
mov byte [ebp + edi - 0xc0], 1
mov ecx, dword [ebp + esi - 0xe4]
mov eax, dword [ebp + eax - 0xe4]
cmp ecx, eax
mov esi, dword [ebp - 0x214]
cmovle ecx, eax
mov eax, dword [ebp - 0x210]
add ecx, dword [ebp + esi*4 - 0x15c]
mov dword [ebp + eax - 0xe4], ecx
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x218]
movzx ecx, cl
mov dword [ebp - 0x218], ecx
mov byte [ebp + eax - 0x220], dh
mov eax, dword [ebp - 0x224]
movzx eax, byte [ebp + eax - 0x12c]
shl eax, 8
add eax, esi
mov esi, dword [ebp - 0x210]
shl eax, 8
add eax, dword [ebp - 0x204]
mov dword [ebp + esi - 0x12c], eax
mov esi, dword [ebp - 0x230]
mov al, byte [ebp - 0x205]
mov byte [esi - 3], al
mov al, byte [ebp - 0x1f9]
mov byte [esi - 2], al
cmp al, 8
mov eax, ecx
mov byte [esi - 4], dl
mov ecx, 1
mov dword [esi], 0
mov esi, dword [ebp - 0x200]
cmove eax, ecx
cmp dl, cl
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x204]
jne 0x5019b3
lea eax, [esi + 4]
mov byte [ebp + edi - 0xbd], 1
cmp eax, 0x20
jbe 0x501991
push 0
push 0x100
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1f8], 0x6a09e667
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1f4], 0xbb67ae85
mov dword [ebp - 0x1f0], 0x3c6ef372
mov dword [ebp - 0x1ec], 0xa54ff53a
mov dword [ebp - 0x1e8], 0x510e527f
mov dword [ebp - 0x1e4], 0x9b05688c
mov dword [ebp - 0x1e0], 0x1f83d9ab
mov dword [ebp - 0x1dc], 0x5be0cd19
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], 0
call fcn.0050eb90
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1f8]
call fcn.0050e960
mov ecx, dword [ebp - 0x204]
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + esi - 0x2c]
add esi, 4
mov dword [ebp - 0x200], esi
mov dword [edx], eax
jmp 0x5019b9
mov dword [ebp - 0x22c], eax
jmp 0x501781
mov edx, dword [ebp - 0x230]
inc ecx
add edx, 8
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x230], edx
cmp ecx, 0x3c
jge 0x5019eb
mov edi, dword [ebp - 0x20c]
jmp 0x5013ec
mov edi, dword [ebp - 0x20c]
inc edi
mov dword [ebp - 0x20c], edi
jmp 0x5013e0
cmp ecx, 0x46
jge 0x501b3c
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x21c], 0
lea eax, [eax + ecx*8]
add eax, 2
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0xe4]
cmp edx, 0x2d
jge 0x501b3c
mov esi, dword [ebp - 0xe0]
cmp esi, 0x2d
jge 0x501b3c
mov edi, dword [ebp - 0xdc]
cmp edi, 0x2d
jge 0x501b3c
cmp dword [ebp - 0xd8], 0x2d
jge 0x501b3c
xor ecx, ecx
mov byte [ebp - 0x226], 0
cmp esi, edx
setl cl
xor eax, eax
cmp esi, edx
mov edx, 2
mov esi, 3
setg al
mov word [ebp - 0x228], si
cmp edi, dword [ebp + ecx*4 - 0xe4]
cmovl ecx, edx
cmp edi, dword [ebp + eax*4 - 0xe4]
mov edi, dword [ebp - 0x21c]
cmovg eax, edx
mov edx, dword [ebp - 0xd8]
cmp edx, dword [ebp + ecx*4 - 0xe4]
cmovl ecx, esi
cmp edx, dword [ebp + eax*4 - 0xe4]
mov dword [ebp - 0x220], ecx
cmovg eax, esi
mov dword [ebp - 0x224], eax
mov eax, edi
cdq
inc edi
idiv esi
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x21c], edi
mov dl, byte [ebp + edx - 0x228]
movzx ecx, dl
mov eax, dword [ebp + ecx*4 - 0x144]
add eax, dword [ebp + esi*4 - 0x108]
mov esi, dword [ebp - 0x220]
mov dword [ebp + esi*4 - 0x108], eax
mov eax, dword [ebp + ecx*4 - 0x15c]
mov ecx, dword [ebp - 0x224]
add eax, dword [ebp + ecx*4 - 0xe4]
mov dword [ebp + esi*4 - 0xe4], eax
mov esi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x220]
mov byte [esi], cl
mov ecx, dword [ebp - 0x204]
inc ecx
mov byte [esi - 2], dl
mov byte [esi - 1], al
mov dword [esi + 2], 0
add esi, 8
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x210], esi
cmp ecx, 0x46
jl 0x501a10
cmp byte [ebp - 0x218], 0
movaps xmm0, xmmword [ebp - 0x260]
mov esi, dword [ebp - 0x200]
je 0x501304
movaps xmm0, xmmword [ebp - 0x260]
add ecx, 0xffffffc4
cmp ecx, 0xa
ja 0x501304
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x204]
pop edi
pop esi
mov word [ecx + eax*8], 6
mov byte [ecx + eax*8 + 2], 0
mov dword [ecx + eax*8 + 4], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c3717
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret