Function at 0x4041e0
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 0x404256
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.00404100
mov eax, dword [esp + 0x17c]
add esp, 4
cmp eax, edi
jbe 0x4042a4
mov ecx, dword [esp + 0x174]
push ecx
call fcn.00403e10
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 0x4042cc
add dword [esp + 0x24], 1
test ebp, ebp
je 0x404325
cmp edi, esi
ja 0x404325
push edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + ebp + 0x50]
push eax
call fcn.0045c754
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x58]
call fcn.004013e0
sub esi, edi
add esp, 0x10
xor ebp, ebp
cmp esi, 0x40
lea ebx, [esp + edi + 0x10]
jb 0x404321
mov edi, esi
shr edi, 6
lea edx, [esp + 0x20]
push edx
mov eax, ebx
call fcn.004013e0
add esp, 4
add ebx, 0x40
sub esi, 0x40
sub edi, 1
jne 0x404307
test esi, esi
jbe 0x404334
push esi
lea eax, [esp + ebp + 0x4c]
push ebx
push eax
call fcn.0045c754
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.00403eb0
mov ecx, esi
lea eax, [esp + 0x20]
call fcn.00403d80
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 0x404392
add dword [esp + 0x24], 1
test esi, esi
je 0x4043ce
cmp edi, ebp
ja 0x4043ce
push edi
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + esi + 0x50]
push eax
call fcn.0045c754
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x58]
call fcn.004013e0
sub ebp, edi
add esp, 0x10
xor esi, esi
cmp ebp, 0x40
lea ebx, [esp + edi + 0xc8]
jb 0x4043ed
mov edi, ebp
shr edi, 6
lea edx, [esp + 0x20]
push edx
mov eax, ebx
call fcn.004013e0
add esp, 4
add ebx, 0x40
sub ebp, 0x40
sub edi, 1
jne 0x4043d3
test ebp, ebp
jbe 0x404400
push ebp
lea eax, [esp + esi + 0x4c]
push ebx
push eax
call fcn.0045c754
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x40441c
lea ecx, [esp + 0x14c]
push ecx
lea esi, [esp + 0x24]
call fcn.00403e10
add esp, 4
lea edi, [esp + 0x10c]
lea eax, [esp + 0x20]
call fcn.00403eb0
push 0x20
mov edx, edi
push edx
lea eax, [esp + 0x134]
push eax
call fcn.0045c754
mov edi, dword [esp + 0x24]
mov esi, 0x20
sub esi, edi
add esp, 0xc
cmp esi, 0x20
jb 0x404456
mov esi, 0x20
mov edx, dword [esp + 0x17c]
push esi
lea ecx, [esp + 0x130]
push ecx
lea eax, [edi + edx]
push eax
call fcn.0045c754
add dword [esp + 0x20], 1
add edi, esi
add esp, 0xc
cmp edi, 0x20
mov dword [esp + 0x18], edi
jb 0x404250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret