Function at 0x45b5a0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4dc1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x18], 0x67452301
mov dword [ebp - 0x14], 0xefcdab89
mov dword [ebp - 0x10], 0x98badcfe
mov dword [ebp - 0xc], 0x10325476
mov dword [ebp - 8], 0xc3d2e1f0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x15c], 0
cmp dword [ebp + 0xc], 0x40
jb 0x45b6d1
mov ecx, dword [ebp + 0xc]
sub ecx, 0x40
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp - 0x174]
ja 0x45b6d1
mov eax, dword [ebp - 0x15c]
add eax, 0x40
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], 0
jmp 0x45b63c
mov ecx, dword [ebp - 0x15c]
add ecx, 4
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp - 0x16c]
jae 0x45b6b9
mov eax, dword [ebp - 0x168]
add eax, dword [ebp - 0x15c]
movzx ecx, byte [eax + 3]
mov edx, dword [ebp - 0x168]
add edx, dword [ebp - 0x15c]
movzx eax, byte [edx + 2]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x168]
add edx, dword [ebp - 0x15c]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp - 0x168]
add edx, dword [ebp - 0x15c]
movzx eax, byte [edx]
shl eax, 0x18
or ecx, eax
mov edx, dword [ebp - 0x170]
mov dword [ebp + edx*4 - 0x158], ecx
mov eax, dword [ebp - 0x170]
add eax, 1
mov dword [ebp - 0x170], eax
jmp 0x45b62d
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0045b160
add esp, 8
jmp 0x45b600
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x15c]
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.0045b110
add esp, 4
mov dword [ebp - 0x160], 0
jmp 0x45b70a
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x16c]
jae 0x45b767
mov edx, dword [ebp - 0x160]
shr edx, 2
mov eax, dword [ebp - 0x160]
add eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x168]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp - 0x160]
and ecx, 3
mov esi, 3
sub esi, ecx
shl esi, 3
mov ecx, esi
shl eax, cl
or eax, dword [ebp + edx*4 - 0x158]
mov edx, dword [ebp - 0x160]
shr edx, 2
mov dword [ebp + edx*4 - 0x158], eax
jmp 0x45b6fb
mov eax, dword [ebp - 0x160]
shr eax, 2
mov ecx, dword [ebp - 0x160]
and ecx, 3
mov edx, 3
sub edx, ecx
shl edx, 3
mov esi, 0x80
mov ecx, edx
shl esi, cl
or esi, dword [ebp + eax*4 - 0x158]
mov eax, dword [ebp - 0x160]
shr eax, 2
mov dword [ebp + eax*4 - 0x158], esi
cmp dword [ebp - 0x16c], 0x38
jb 0x45b7ce
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0045b160
add esp, 8
lea eax, [ebp - 0x158]
push eax
call fcn.0045b110
add esp, 4
mov ecx, dword [ebp + 0xc]
shl ecx, 3
mov edx, 4
imul eax, edx, 0xf
mov dword [ebp + eax - 0x158], ecx
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0045b160
add esp, 8
mov dword [ebp - 0x164], 0x14
mov eax, dword [ebp - 0x164]
sub eax, 1
mov dword [ebp - 0x164], eax
js 0x45b845
mov ecx, dword [ebp - 0x164]
sar ecx, 2
mov edx, 3
sub edx, dword [ebp - 0x164]
and edx, 3
shl edx, 3
mov eax, dword [ebp + ecx*4 - 0x18]
mov ecx, edx
shr eax, cl
and eax, 0xff
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x164]
mov byte [ecx], al
jmp 0x45b800
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478787
mov esp, ebp
pop ebp
ret