Function at 0x504a80
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00546c70
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
mov dword [ebp - 0x4c], 0x10325476
mov dword [ebp - 0x48], 0xc3d2e1f0
test esi, esi
je 0x504b24
mov dword [ebp - 0x60], esi
cmp esi, 0x40
jb 0x504b12
nop dword [eax]
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.005033d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x504c75
sub esi, 0x40
add edi, 0x40
cmp esi, 0x40
jae 0x504af0
test esi, esi
je 0x504b24
push esi
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.005478f0
add esp, 0xc
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x44]
and ecx, 0x3f
mov byte [ebp + ecx - 0x44], 0x80
inc ecx
add edx, ecx
cmp ecx, 0x38
ja 0x504b47
mov eax, 0x38
sub eax, ecx
push eax
push 0
push edx
jmp 0x504b78
mov eax, 0x40
sub eax, ecx
push eax
push 0
push edx
call fcn.00546c70
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.005033d0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x504c75
push 0x38
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00546c70
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov ecx, dword [ebp - 0x60]
lea edx, [eax*8]
mov eax, ecx
shr eax, 0x1d
or edx, eax
shl ecx, 3
mov eax, edx
mov byte [ebp - 9], dl
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 6], al
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 5], cl
push eax
call fcn.005033d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x504c75
mov ecx, dword [ebp - 0x64]
movzx eax, byte [ebp - 0x55]
mov byte [ecx], al
movzx eax, byte [ebp - 0x56]
mov byte [ecx + 1], al
movzx eax, byte [ebp - 0x57]
mov byte [ecx + 2], al
movzx eax, byte [ebp - 0x58]
mov byte [ecx + 3], al
movzx eax, byte [ebp - 0x51]
mov byte [ecx + 4], al
movzx eax, byte [ebp - 0x52]
mov byte [ecx + 5], al
movzx eax, byte [ebp - 0x53]
mov byte [ecx + 6], al
movzx eax, byte [ebp - 0x54]
mov byte [ecx + 7], al
movzx eax, byte [ebp - 0x4d]
mov byte [ecx + 8], al
movzx eax, byte [ebp - 0x4e]
mov byte [ecx + 9], al
movzx eax, byte [ebp - 0x4f]
mov byte [ecx + 0xa], al
movzx eax, byte [ebp - 0x50]
mov byte [ecx + 0xb], al
movzx eax, byte [ebp - 0x49]
mov byte [ecx + 0xc], al
movzx eax, byte [ebp - 0x4a]
mov byte [ecx + 0xd], al
movzx eax, byte [ebp - 0x4b]
mov byte [ecx + 0xe], al
movzx eax, byte [ebp - 0x4c]
mov byte [ecx + 0xf], al
movzx eax, byte [ebp - 0x45]
mov byte [ecx + 0x10], al
movzx eax, byte [ebp - 0x46]
mov byte [ecx + 0x11], al
movzx eax, byte [ebp - 0x47]
mov byte [ecx + 0x12], al
movzx eax, byte [ebp - 0x48]
mov byte [ecx + 0x13], al
lea eax, [ebp - 0x60]
push 0x5c
push eax
call fcn.0050f8d0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00544c5a
mov esp, ebp
pop ebp
ret