Function at 0x4b8170
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x310], esi
cmp byte [ebx], 0
je 0x4b865a
cmp byte [ebp + 0x14], 0
push edi
je 0x4b8351
cmp dword [0x805454], 0
jne 0x4b81b8
call fcn.004b6ec0
push ebx
mov ecx, esi
call fcn.004b86a0
push 0x80
lea eax, [ebp - 0xa4]
mov dword [esi + 0x204], 0xd3a3b879
push 0
push eax
mov dword [esi + 0x208], 0x3f6d12f7
mov dword [esi + 0x20c], 0x7515a235
mov dword [esi + 0x210], 0xa4e7f123
call fcn.006b47d0
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8203
sub ecx, edx
lea eax, [ebp - 0xa4]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea ecx, [ebx + 1]
mov edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4b8220
mov edx, esi
sub ebx, ecx
mov ecx, 0x40
mov dword [ebp - 0x318], ebx
mov esi, 0x7e8190
lea eax, [edx + 0x104]
mov edi, eax
mov dword [ebp - 0x320], eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [ebp - 0x314], esi
xor edi, edi
mov dword [ebp - 0x30c], edi
test ebx, ebx
jle 0x4b8304
movzx eax, byte [ebp + edi - 0xa4]
mov ebx, 1
movzx ecx, byte [ebp + edi - 0xa3]
sub eax, esi
add ecx, esi
and eax, 0xff
and ecx, 0xff
movzx eax, byte [eax*4 + 0x805450]
movzx ecx, byte [ecx*4 + 0x805450]
mov dword [ebp - 0x31c], ecx
cmp eax, ecx
je 0x4b82ed
lea esi, [ebx + eax]
add esi, edi
lea ebx, [ebx + 1]
mov edi, dword [ebp - 0x320]
and esi, 0xff
add esi, edx
mov dl, byte [edx + eax + 0x104]
mov cl, byte [esi + 0x104]
mov byte [edi + eax], cl
inc eax
mov edi, dword [ebp - 0x30c]
and eax, 0xff
mov byte [esi + 0x104], dl
mov edx, dword [ebp - 0x310]
cmp eax, dword [ebp - 0x31c]
jne 0x4b82a1
mov esi, dword [ebp - 0x314]
mov ebx, dword [ebp - 0x318]
add edi, 2
mov dword [ebp - 0x30c], edi
cmp edi, ebx
jl 0x4b8263
inc esi
mov dword [ebp - 0x314], esi
cmp esi, 0x100
jl 0x4b8253
xor esi, esi
test ebx, ebx
jle 0x4b8659
lea eax, [ebp - 0xa4]
mov ecx, edx
add eax, esi
push eax
call fcn.004b7dd0
mov edx, dword [ebp - 0x310]
add esi, 0x10
cmp esi, ebx
jl 0x4b8321
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
xor edi, edi
mov dword [ebp - 0x30c], eax
jmp 0x4b8360
mov ecx, ebx
lea eax, [edi + 0x805af0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b8388
test dl, dl
je 0x4b8384
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b8388
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b8368
xor eax, eax
jmp 0x4b838d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b83c2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4b83a0
cmp byte [edi + 0x805b70], cl
jmp 0x4b83bc
cmp byte [edi + 0x805b70], 0
je 0x4b83c2
mov eax, dword [edi + 0x805b71]
cmp eax, dword [ecx]
jne 0x4b83c2
mov eax, dword [edi + 0x805b75]
cmp eax, dword [ecx + 4]
je 0x4b866c
inc dword [ebp - 0x30c]
add edi, 0xa9
cmp edi, 0x2a4
jb 0x4b8360
push 0x7f
lea eax, [ebp - 0x1a4]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
lea edx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x1a4]
mov word [ebp - 0xa6], ax
call fcn.004a3090
xor ecx, ecx
lea eax, [ebp - 0x1a4]
add esp, 4
cmp word [ebp - 0x1a4], cx
je 0x4b842a
jmp 0x4b8420
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4b8420
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x314], edx
test ecx, ecx
je 0x4b8456
mov eax, dword [ecx]
mov dword [ebp + edx - 0x2ac], eax
mov eax, dword [ecx + 4]
mov dword [ebp + edx - 0x2a8], eax
add edx, 8
mov dword [ebp - 0x314], edx
mov dword [ebp - 0x308], 0x67452301
xor ebx, ebx
mov dword [ebp - 0x304], 0xefcdab89
mov dword [ebp - 0x300], 0x98badcfe
mov dword [ebp - 0x2fc], 0x10325476
mov dword [ebp - 0x2f8], 0xc3d2e1f0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2f4], 0
mov edi, edi
push edx
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x308]
call fcn.004bf710
mov eax, ebx
mov byte [ebp - 0x30c], bl
sar eax, 8
lea edx, [ebp - 0x30c]
mov byte [ebp - 0x30b], al
lea ecx, [ebp - 0x308]
mov eax, ebx
sar eax, 0x10
push 3
mov byte [ebp - 0x30a], al
call fcn.004bf710
mov eax, ebx
add esp, 8
and eax, 0x80003fff
jns 0x4b84f4
dec eax
or eax, 0xffffc000
inc eax
jne 0x4b852f
mov ecx, 0x17
lea esi, [ebp - 0x308]
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x80]
call fcn.004bf7d0
mov esi, dword [ebp - 0x310]
mov eax, ebx
mov cl, byte [ebp - 8]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov byte [eax + esi + 0x22f], cl
mov edx, dword [ebp - 0x314]
inc ebx
cmp ebx, 0x40000
jl 0x4b84a0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x308]
call fcn.004bf7d0
mov ebx, dword [ebp - 0x318]
lea edx, [esi + 0x220]
xor edi, edi
mov edi, edi
mov ecx, dword [ebp + edi*4 - 0x18]
lea edx, [edx + 4]
mov eax, ecx
mov byte [edx - 5], cl
shr eax, 8
inc edi
mov byte [edx - 4], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx - 3], al
mov byte [edx - 2], cl
cmp edi, 4
jl 0x4b8560
imul eax, dword [0x805444], 0xa9
push ebx
push 0x80
add eax, 0x805af0
push eax
call fcn.006ba2f2
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [0x805444]
add esp, 0xc
test ecx, ecx
setne al
imul edx, edi, 0xa9
mov byte [edx + 0x805b70], al
cmp al, 1
jne 0x4b85d5
mov eax, dword [ecx]
mov dword [edx + 0x805b71], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x805b75], eax
movdqu xmm0, xmmword [esi + 0x21f]
lea ebx, [esi + 0x21f]
lea eax, [edi + 1]
movdqu xmmword [edx + 0x805ad0], xmm0
and eax, 3
movdqu xmm0, xmmword [esi + 0x22f]
mov dword [0x805444], eax
movdqu xmmword [edx + 0x805ae0], xmm0
mov dword [esi], 1
xor edi, edi
mov edi, edi
mov eax, edi
lea ecx, [ebp - 0x24]
and eax, 3
mov edx, edi
add ecx, eax
shr edx, 2
mov al, byte [ebx + edi]
inc edi
mov byte [ecx + edx*4], al
cmp edi, 0x10
jb 0x4b8610
lea ecx, [esi + 4]
mov edx, 0x10
mov al, byte [ecx + 0x22b]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x4b8633
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004b70e0
cmp dword [esi], 1
jne 0x4b8659
mov ecx, esi
call fcn.004b7260
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x10
imul eax, dword [ebp - 0x30c], 0xa9
lea ebx, [esi + 0x21f]
movdqu xmm0, xmmword [eax + 0x805ad0]
movdqu xmmword [ebx], xmm0
movdqu xmm0, xmmword [eax + 0x805ae0]
movdqu xmmword [esi + 0x22f], xmm0
jmp 0x4b8606