Function at 0x401dca
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [ebp - 0x17c], ecx
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 0x54]
cmp eax, 0x40
je 0x401e03
mov dword [esp + 8], 0x4c
mov dword [esp + 4], str.C:codehomework6_cs212_sha1_sha1.cpp
mov dword [esp], str.unprocessedBytes__64
call sub.msvcrt.dll__assert
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x401ec5
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x17c]
movzx eax, byte [eax + edx + 0x14]
movzx eax, al
shl eax, 0x18
mov ecx, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
lea edx, [eax + 1]
mov eax, dword [ebp - 0x17c]
movzx eax, byte [eax + edx + 0x14]
movzx eax, al
shl eax, 0x10
add ecx, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
lea edx, [eax + 2]
mov eax, dword [ebp - 0x17c]
movzx eax, byte [eax + edx + 0x14]
movzx eax, al
shl eax, 8
add ecx, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
lea edx, [eax + 3]
mov eax, dword [ebp - 0x17c]
movzx eax, byte [eax + edx + 0x14]
movzx eax, al
add eax, ecx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x16c], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xf
jle 0x401e47
jmp 0x401f2b
mov eax, dword [ebp - 0xc]
sub eax, 3
mov edx, dword [ebp + eax*4 - 0x16c]
mov eax, dword [ebp - 0xc]
sub eax, 8
mov eax, dword [ebp + eax*4 - 0x16c]
xor edx, eax
mov eax, dword [ebp - 0xc]
sub eax, 0xe
mov eax, dword [ebp + eax*4 - 0x16c]
xor edx, eax
mov eax, dword [ebp - 0xc]
sub eax, 0x10
mov eax, dword [ebp + eax*4 - 0x16c]
xor eax, edx
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00401c6a
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x16c], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x4f
jle 0x401ed1
mov dword [ebp - 0xc], 0
jmp 0x402019
cmp dword [ebp - 0xc], 0x13
jg 0x401f61
mov dword [ebp - 0x24], 0x5a827999
mov eax, dword [ebp - 0x14]
and eax, dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp - 0x14]
not eax
and eax, dword [ebp - 0x1c]
or eax, edx
mov dword [ebp - 0x28], eax
jmp 0x401fb4
cmp dword [ebp - 0xc], 0x27
jg 0x401f7c
mov dword [ebp - 0x24], 0x6ed9eba1
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x401fb4
cmp dword [ebp - 0xc], 0x3b
jg 0x401fa1
mov dword [ebp - 0x24], 0x8f1bbcdc
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x14]
mov edx, eax
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
or eax, edx
mov dword [ebp - 0x28], eax
jmp 0x401fb4
mov dword [ebp - 0x24], 0xca62c1d6
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00401c6a
mov edx, eax
mov eax, dword [ebp - 0x28]
add edx, eax
mov eax, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x16c]
add edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0x1e
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00401c6a
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x4f
jle 0x401f3d
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
add edx, eax
mov eax, dword [ebp - 0x17c]
mov dword [eax], edx
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp - 0x17c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x18]
add edx, eax
mov eax, dword [ebp - 0x17c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
add edx, eax
mov eax, dword [ebp - 0x17c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0x17c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x17c]
mov dword [eax + 0x54], 0
leave
ret