Function at 0x46afa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x540f48]
push ebx
push esi
push edi
mov edi, dword [0x4f4340]
dec edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4f433c]
add edi, eax
shr edi, cl
add edi, 2
mov dword [ebp - 0x3c], edi
cmp edx, edi
jl 0x46aff3
mov esi, dword [0x52b924]
lea ecx, [eax - 0x18]
shr ecx, 2
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x30], esi
nop
cmp dword [ebx], 0x3eb202fe
je 0x46affd
inc eax
add ebx, 4
mov dword [ebp - 0x30], ebx
cmp eax, ecx
jle 0x46afe0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ecx
jg 0x46aff3
movzx eax, word [ebx + 0x16]
mov edx, dword [0x52b928]
add eax, esi
mov dword [ebp - 0x18], eax
movzx ecx, word [eax + 0xe]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ecx + edx], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, 0x20
call fcn.00491e30
mov edx, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 8], 0x8000
mov dword [ebp - 0x20], 0x8000
movlpd qword [ebp - 0x38], xmm0
movzx ecx, word [edx + 0x10]
mov edx, dword [0x52b928]
mov dword [ecx + edx], eax
lea eax, [edi - 2]
mov ecx, dword [0x540f48]
mov edx, dword [ebp - 0xc]
mov word [ebx + 8], ax
add edx, 8
mov eax, 2
shr ecx, 2
mov word [ebx + 0xa], ax
lea eax, [edi - 3]
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
movzx ebx, word [eax + 0xa]
movzx eax, word [eax + 0xc]
add ebx, esi
mov dword [ebp - 0x24], edx
lea eax, [eax + eax*4]
add eax, eax
push eax
push edi
push ebx
call fcn.00493600
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
je 0x46b16c
mov eax, dword [ebp - 0x34]
mov ecx, 0x8000
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
lea esi, [esi + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi - 4]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x46b135
lea eax, [edi + 1]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x34], eax
imul ecx, dword [0x4f4340]
mov eax, edi
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0x14]
cmp dword [ebp - 0x24], eax
jne 0x46b11d
cmp dword [ebp - 0x1c], edx
jne 0x46b11d
cmp ecx, 0x10000
jae 0x46b11d
mov eax, dword [ebp - 0x20]
dec eax
add eax, ecx
mov ecx, dword [ebp - 8]
xor eax, ecx
test eax, 0xffff0000
jne 0x46b120
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jmp 0x46b146
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c]
mov word [ebx + 8], di
add ebx, 0xa
mov edx, dword [ebp - 0x24]
mov edi, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
add ecx, dword [0x4f4340]
sub dword [ebp - 0x28], 1
mov dword [ebp - 8], ecx
jne 0x46b0c3
mov esi, dword [0x52b924]
test edi, edi
je 0x46b16c
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov word [ebx + 8], di
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x2c]
movzx edx, word [edx]
add edx, esi
mov eax, dword [ebx + edi*8]
mov ecx, dword [ebx + edi*8 + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + ecx*8 - 0x10]
mov ecx, dword [ebx + ecx*8 - 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x46b1e0
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46b1a3
mov ebx, dword [ebp - 0x18]
sub ecx, edi
inc ecx
movzx eax, word [ebx + 4]
cmp eax, ecx
jge 0x46b1cf
push str.syslinux_patch:_Subdirectory_path_too_long..._aborting_install_
call fcn.004407e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 2]
push ecx
push edx
add eax, esi
push eax
call fcn.00493080
add esp, 0xc
mov ebx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], 0x3eb202fe
mov dword [ebx + 0x10], 0
test eax, eax
je 0x46b25a
cmp eax, 8
jb 0x46b25a
and eax, 0x80000007
jns 0x46b20b
dec eax
or eax, 0xfffffff8
inc eax
mov edx, dword [ebp - 4]
xorps xmm1, xmm1
sub edx, eax
xorps xmm2, xmm2
movups xmm0, xmmword [esi]
add ecx, 8
psubd xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
psubd xmm2, xmm0
cmp ecx, edx
jl 0x46b216
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add eax, 0x3eb202fe
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
xor edx, edx
xor edi, edi
cmp ecx, eax
jge 0x46b2bb
sub eax, ecx
cmp eax, 2
jl 0x46b289
mov eax, dword [ebp - 4]
sub eax, ecx
sub eax, 2
shr eax, 1
inc eax
lea ecx, [ecx + eax*2]
sub edx, dword [esi]
sub edi, dword [esi + 4]
add esi, 8
sub eax, 1
jne 0x46b277
cmp ecx, dword [ebp - 4]
jge 0x46b2a3
mov ecx, dword [ebp - 0x18]
lea eax, [edx + edi]
sub ecx, dword [esi]
add ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], ecx
shl eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
lea eax, [edx + edi]
add ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], ecx
shl eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [ebx + 0x10], ecx
shl eax, 2
pop ebx
mov esp, ebp
pop ebp
ret