Function at 0x4b6460
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x599224]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x15c], 0
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 ecx, dword [ebp - 0x15c]
add ecx, 0x40
mov dword [ebp - 0x16c], ecx
jmp 0x4b64ca
mov edx, dword [ebp - 0x15c]
add edx, 0x40
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 0x15c]
add eax, 0x40
cmp eax, dword [ebp + 0xc]
ja 0x4b658c
mov dword [ebp - 0x170], 0
jmp 0x4b64f7
mov ecx, dword [ebp - 0x15c]
add ecx, 4
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp - 0x16c]
jae 0x4b6574
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 0x4b64e8
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004b6730
add esp, 8
jmp 0x4b64bb
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x15c]
mov dword [ebp - 0x16c], eax
push 0x40
push 0
lea ecx, [ebp - 0x158]
push ecx
call fcn.00470bb9
add esp, 0xc
mov dword [ebp - 0x160], 0
jmp 0x4b65c9
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x16c]
jae 0x4b6626
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 0x4b65ba
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 0x4b6691
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004b6730
add esp, 8
push 0x40
push 0
lea eax, [ebp - 0x158]
push eax
call fcn.00470bb9
add esp, 0xc
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.004b6730
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x164], 0x13
jmp 0x4b66dd
mov ecx, dword [ebp - 0x164]
sub ecx, 1
mov dword [ebp - 0x164], ecx
cmp dword [ebp - 0x164], 0
jl 0x4b671b
mov edx, dword [ebp - 0x164]
sar edx, 2
mov ecx, 3
sub ecx, dword [ebp - 0x164]
and ecx, 3
shl ecx, 3
mov eax, dword [ebp + edx*4 - 0x18]
shr eax, cl
and eax, 0xff
mov ecx, dword [ebp - 0x174]
add ecx, dword [ebp - 0x164]
mov byte [ecx], al
jmp 0x4b66ce
mov eax, dword [ebp - 0x174]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb55
mov esp, ebp
pop ebp
ret