Function at 0x404eb0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov eax, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x6a09e667
mov dword [esp + 0x2c], 0xbb67ae85
mov dword [esp + 0x30], 0x3c6ef372
mov dword [esp + 0x34], 0xa54ff53a
mov dword [esp + 0x38], 0x510e527f
mov dword [esp + 0x3c], 0x9b05688c
mov dword [esp + 0x40], 0x1f83d9ab
mov dword [esp + 0x44], 0x5be0cd19
mov dword [esp + 0x108], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jmp 0x404f26
mov eax, dword [esp + 0x14]
xor edi, edi
mov ecx, eax
shr ecx, 0x18
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
mov edx, dword [esp + 0x170]
mov ecx, eax
shr ecx, 8
push edx
lea esi, [esp + 0x24]
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
call fcn.00404dd0
mov eax, dword [esp + 0x17c]
add esp, 4
cmp eax, edi
jbe 0x404f74
mov ecx, dword [esp + 0x174]
push ecx
call fcn.00404ae0
add esp, 4
mov eax, dword [esp + 0x20]
mov ebp, eax
mov esi, 4
and ebp, 0x3f
mov edi, 0x40
add eax, esi
sub edi, ebp
cmp eax, esi
lea ebx, [esp + 0x10]
mov dword [esp + 0x20], eax
jae 0x404f9c
add dword [esp + 0x24], 1
test ebp, ebp
je 0x404ff5
cmp edi, esi
ja 0x404ff5
push edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + ebp + 0x50]
push eax
call sub.msvcrt.dll_memcpy
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x58]
call fcn.004020b0
sub esi, edi
add esp, 0x10
xor ebp, ebp
cmp esi, 0x40
lea ebx, [esp + edi + 0x10]
jb 0x404ff1
mov edi, esi
shr edi, 6
lea edx, [esp + 0x20]
push edx
mov eax, ebx
call fcn.004020b0
add esp, 4
add ebx, 0x40
sub esi, 0x40
sub edi, 1
jne 0x404fd7
test esi, esi
jbe 0x405004
push esi
lea eax, [esp + ebp + 0x4c]
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x108]
xor ecx, ecx
test eax, eax
sete cl
mov esi, eax
lea edi, [esp + 0x14c]
lea eax, [esp + 0x20]
lea ecx, [ecx*4 + 0x1c]
mov dword [esp + 0x1c], ecx
call fcn.00404b80
mov ecx, esi
lea eax, [esp + 0x20]
call fcn.00404a50
mov eax, dword [esp + 0x20]
mov ebp, 0x40
mov esi, eax
and esi, 0x3f
mov edi, ebp
add eax, ebp
sub edi, esi
cmp eax, ebp
lea ebx, [esp + 0xc8]
mov dword [esp + 0x20], eax
jae 0x405062
add dword [esp + 0x24], 1
test esi, esi
je 0x40509e
cmp edi, ebp
ja 0x40509e
push edi
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + esi + 0x50]
push eax
call sub.msvcrt.dll_memcpy
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x58]
call fcn.004020b0
sub ebp, edi
add esp, 0x10
xor esi, esi
cmp ebp, 0x40
lea ebx, [esp + edi + 0xc8]
jb 0x4050bd
mov edi, ebp
shr edi, 6
lea edx, [esp + 0x20]
push edx
mov eax, ebx
call fcn.004020b0
add esp, 4
add ebx, 0x40
sub ebp, 0x40
sub edi, 1
jne 0x4050a3
test ebp, ebp
jbe 0x4050d0
push ebp
lea eax, [esp + esi + 0x4c]
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4050ec
lea ecx, [esp + 0x14c]
push ecx
lea esi, [esp + 0x24]
call fcn.00404ae0
add esp, 4
lea edi, [esp + 0x10c]
lea eax, [esp + 0x20]
call fcn.00404b80
push 0x20
mov edx, edi
push edx
lea eax, [esp + 0x134]
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x24]
mov esi, 0x20
sub esi, edi
add esp, 0xc
cmp esi, 0x20
jb 0x405126
mov esi, 0x20
mov edx, dword [esp + 0x17c]
push esi
lea ecx, [esp + 0x130]
push ecx
lea eax, [edi + edx]
push eax
call sub.msvcrt.dll_memcpy
add dword [esp + 0x20], 1
add edi, esi
add esp, 0xc
cmp edi, 0x20
mov dword [esp + 0x18], edi
jb 0x404f20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret