Function at 0x460c00
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x58], edi
test ebx, ebx
je 0x460eb0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x460c39
test esi, esi
je 0x460eb0
mov edx, dword [ebp + 0x18]
mov ecx, edx
and ecx, 2
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ecx
je 0x460c51
test edi, edi
je 0x460eb0
test dl, 1
je 0x460d0e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x460c83
mov dword [ebx], 0x67452301
mov ecx, 0xc3d2e1f0
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
jmp 0x460c9f
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov ecx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x10], ecx
xor ecx, ecx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x5c], 0
mov dword [ebp - 0x4c], ecx
mov edx, 0x40
mov edi, edx
sub edi, ecx
test eax, eax
je 0x460dd5
lea edx, [eax*8]
shr eax, 0x1d
add dword [ebx + 0x14], edx
cmp dword [ebx + 0x14], edx
lea ecx, [eax + 1]
cmovae ecx, eax
add dword [ebx + 0x18], ecx
cmp dword [ebx + 0x18], ecx
jae 0x460d2f
push 0x60
push 0
push ebx
call fcn.00470010
add esp, 0xc
mov eax, 0x403
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x5c]
mov dword [ebp - 0x4c], ecx
cmp ecx, 0x3f
jbe 0x460cbc
pop edi
pop esi
mov eax, 0x401
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
cmp eax, edi
jae 0x460d54
push eax
mov eax, dword [ebp - 0x4c]
add eax, 0x1c
add eax, ebx
push esi
push eax
call fcn.00470170
mov edi, dword [ebp - 0x48]
add esp, 0xc
add dword [ebx + 0x5c], edi
mov ecx, dword [ebx + 0x5c]
jmp 0x460dd0
sub eax, edi
mov dword [ebp - 0x48], eax
test edi, edi
je 0x460d70
mov ecx, dword [ebp - 0x4c]
sub ecx, esi
add ecx, ebx
mov al, byte [esi]
mov byte [ecx + esi + 0x1c], al
inc esi
sub edi, 1
jne 0x460d64
lea eax, [ebx + 0x1c]
push 0x10
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00461110
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0045fc60
mov edi, dword [ebp - 0x48]
add esp, 0x14
shr edi, 6
test edi, edi
je 0x460db7
push 0x10
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00461110
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0045fc60
add esp, 0x14
add esi, 0x40
sub edi, 1
jne 0x460d96
mov edi, dword [ebp - 0x48]
lea eax, [ebx + 0x1c]
and edi, 0x3f
push edi
push esi
push eax
call fcn.00470170
add esp, 0xc
mov dword [ebx + 0x5c], edi
mov ecx, edi
mov edx, 0x40
cmp dword [ebp - 0x50], 0
je 0x460e9d
lea esi, [ebx + 0x1c]
sub edx, ecx
add esi, ecx
test byte [ebp - 0x54], 4
jne 0x460e60
mov byte [esi], 0x80
dec edx
inc esi
cmp edx, 8
jae 0x460e27
push edx
push 0
push esi
call fcn.00470010
push 0x10
lea esi, [ebx + 0x1c]
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00461110
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0045fc60
push 0x38
push 0
push esi
call fcn.00470010
add esp, 0x2c
jmp 0x460e40
lea ecx, [edx - 8]
test ecx, ecx
je 0x460e40
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0xe
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00461110
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
jmp 0x460e7b
push edx
push 0
push esi
call fcn.00470010
push 0x10
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00461110
add esp, 0x18
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0045fc60
push 5
push ebx
push dword [ebp - 0x58]
call fcn.00461170
push 0x60
push 0
push ebx
call fcn.00470010
add esp, 0x20
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x402
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d700
mov esp, ebp
pop ebp
ret