Function at 0x417380
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x437024]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi]
push edi
mov dword [esp + 0x18], esi
cmp ecx, 0x3f
jne 0x417415
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x4173bf
mov cl, byte [esi + eax + 8]
mov byte [esi + eax + 0x24], cl
inc eax
cmp eax, dword [esi + 4]
jb 0x4173b1
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x4173e0
cmp eax, 0x20
jae 0x4175fa
mov edx, dword [esi + 0x20]
mov dl, byte [ecx + edx]
mov byte [esi + eax + 0x24], dl
inc ecx
inc eax
cmp ecx, dword [esi + 0x1c]
jb 0x4173c6
cmp eax, 0x20
jae 0x4175fa
mov edx, 0x20
sub edx, eax
push edx
lea ecx, [esi + eax + 0x24]
push 0
push ecx
call fcn.00426470
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00420def
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [edi + 1]
xor edx, edx
mov dword [esp + 0x30], 0x6a09e667
mov dword [esp + 0x34], 0xbb67ae85
mov dword [esp + 0x38], 0x3c6ef372
mov dword [esp + 0x3c], 0xa54ff53a
mov dword [esp + 0x40], 0x510e527f
mov dword [esp + 0x44], 0x9b05688c
mov dword [esp + 0x48], 0x1f83d9ab
mov dword [esp + 0x4c], 0x5be0cd19
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.0042a3b0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0x9c], 0
mov byte [esp + 0x9d], 0
mov byte [esp + 0x9e], 0
mov byte [esp + 0x9f], 0
mov byte [esp + 0xa0], 0
mov byte [esp + 0xa1], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xa3], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp edx, edi
jb 0x4175ee
ja 0x4174cb
cmp eax, edi
jbe 0x4175ee
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
jmp 0x4174e6
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
add esi, 8
mov edi, esi
mov esi, dword [esp + 0x50]
and esi, 0x3f
test ebx, ebx
jbe 0x417527
lea ebx, [ebx]
mov al, byte [edi]
mov byte [esp + esi + 0x58], al
inc esi
inc edi
add dword [esp + 0x50], 1
adc dword [esp + 0x54], 0
dec ebx
cmp esi, 0x40
jne 0x417523
lea edx, [esp + 0x30]
xor esi, esi
call fcn.004044e0
test ebx, ebx
ja 0x417500
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, eax
and esi, 0x3f
test ebx, ebx
jbe 0x41756b
lea esp, [esp]
mov cl, byte [edi]
mov byte [esp + esi + 0x58], cl
inc esi
inc edi
add dword [esp + 0x50], 1
adc dword [esp + 0x54], 0
dec ebx
cmp esi, 0x40
jne 0x417563
lea edx, [esp + 0x30]
xor esi, esi
call fcn.004044e0
test ebx, ebx
ja 0x417540
mov eax, dword [esp + 0x50]
and eax, 0x3f
mov ebx, 8
lea edi, [esp + 0x9c]
mov esi, eax
lea esp, [esp]
mov dl, byte [edi]
mov byte [esp + esi + 0x58], dl
inc esi
inc edi
add dword [esp + 0x50], 1
adc dword [esp + 0x54], 0
dec ebx
cmp esi, 0x40
jne 0x4175a3
lea edx, [esp + 0x30]
xor esi, esi
call fcn.004044e0
test ebx, ebx
ja 0x417580
xor eax, eax
lea esp, [esp]
add byte [esp + eax + 0x9c], 1
jne 0x4175c0
inc eax
cmp eax, 8
jl 0x4175b0
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
adc eax, 0
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jb 0x4174e2
ja 0x4175ea
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x28]
jb 0x4174e2
mov esi, dword [esp + 0x18]
lea eax, [esi + 0x24]
lea edi, [esp + 0x30]
call fcn.004045a0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00420def
mov esp, ebp
pop ebp
ret