Function at 0x477a10
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x108], eax
mov eax, dword [ebp + 0xc]
movlpd qword [esp + 0x110], xmm0
movlpd qword [esp + 0x118], xmm0
mov dword [esp + 0x12c], 0
movlpd qword [esp + 0x130], xmm0
movlpd qword [esp + 0x138], xmm0
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], esi
movlpd qword [esp + 0x10], xmm0
test edi, edi
jb 0x477ae3
ja 0x477a94
test eax, eax
je 0x477ae3
test edi, edi
jne 0x477a94
cmp eax, 4
jb 0x477ae3
mov ebx, eax
xor ecx, ecx
and ebx, 0xfffffffc
xorps xmm2, xmm2
xorps xmm1, xmm1
movups xmm0, xmmword [esi + ecx*8]
paddq xmm2, xmm0
movups xmm0, xmmword [esi + ecx*8 + 0x10]
add ecx, 4
mov eax, ecx
cdq
paddq xmm1, xmm0
cmp edx, edi
jb 0x477aa1
ja 0x477ac2
cmp eax, ebx
jb 0x477aa1
paddq xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddq xmm1, xmm0
movd ebx, xmm1
psrldq xmm1, 4
movd dword [esp + 0xc], xmm1
jmp 0x477aef
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, ecx
mov dword [esp + 0x10], ebx
cdq
cmp edx, edi
ja 0x477b23
jb 0x477b01
cmp eax, dword [ebp + 0xc]
jae 0x477b23
add ebx, dword [esi + ecx*8]
mov eax, dword [esp + 0xc]
adc eax, dword [esi + ecx*8 + 4]
inc ecx
mov dword [esp + 0xc], eax
mov eax, ecx
cdq
cmp edx, edi
jb 0x477b01
ja 0x477b1f
cmp eax, dword [ebp + 0xc]
jb 0x477b01
mov dword [esp + 0x10], ebx
lea eax, [ebx + 9]
mov byte [esp + 0x30], 0x80
neg eax
and eax, 0x3f
lea edi, [eax + 9]
cmp eax, 1
jb 0x477b48
push eax
lea eax, [esp + 0x35]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, ebx
mov dword [esp + 0x144], edi
mov ebx, dword [esp + 0xc]
shld ebx, edx, 3
mov dword [esp + 0x148], 0
shl edx, 3
mov eax, ebx
mov ecx, edx
mov byte [esp + edi + 0x2f], dl
shrd ecx, eax, 8
mov eax, ebx
mov byte [esp + edi + 0x2b], bl
mov byte [esp + edi + 0x2e], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, ebx
mov dword [esp + 0x14c], 0
shrd edx, eax, 0x18
mov eax, ebx
mov byte [esp + edi + 0x2d], cl
shr eax, 8
mov ecx, 0x67452301
mov byte [esp + edi + 0x2a], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
mov byte [esp + edi + 0x28], bl
xor ebx, ebx
mov byte [esp + edi + 0x2c], dl
mov edx, 0xefcdab89
mov byte [esp + edi + 0x29], al
lea eax, [esp + 0x30]
add edi, dword [esp + 0x10]
mov dword [esp + 0x100], edi
adc ebx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x104], ebx
shrd edi, ebx, 6
mov dword [esp + 0x140], eax
shr ebx, 6
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
test ebx, ebx
jb 0x477c46
ja 0x477c20
test edi, edi
je 0x477c46
nop word [eax + eax]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x80]
call fcn.00477f20
inc esi
mov eax, esi
cdq
cmp edx, ebx
jb 0x477c20
ja 0x477c3e
cmp eax, edi
jb 0x477c20
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov dword [eax + 0x10], ecx
mov esp, ebp
pop ebp
ret