Function at 0x4665e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4e81bc]
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 0x466711
mov ecx, dword [ebp + 0xc]
sub ecx, 0x40
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp - 0x174]
ja 0x466711
mov eax, dword [ebp - 0x15c]
add eax, 0x40
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], 0
jmp 0x46667c
mov ecx, dword [ebp - 0x15c]
add ecx, 4
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp - 0x16c]
jae 0x4666f9
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 0x46666d
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004661a0
add esp, 8
jmp 0x466640
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x15c]
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.00466150
add esp, 4
mov dword [ebp - 0x160], 0
jmp 0x46674a
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x16c]
jae 0x4667a7
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 0x46673b
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 0x46680e
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004661a0
add esp, 8
lea eax, [ebp - 0x158]
push eax
call fcn.00466150
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.004661a0
add esp, 8
mov dword [ebp - 0x164], 0x14
mov eax, dword [ebp - 0x164]
sub eax, 1
mov dword [ebp - 0x164], eax
js 0x466885
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 0x466840
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482147
mov esp, ebp
pop ebp
ret