Function at 0x100488f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
mov dword [ebp - 8], edx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp dword [ebx + 0xc], eax
jle 0x10048aea
mov al, byte [ecx + 0x18]
xorps xmm0, xmm0
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], eax
add esi, 0x14
mov al, byte [ecx + 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
nop word [eax + eax]
movss xmm1, dword [esi - 0x14]
mov eax, 0x100
comiss xmm1, xmm0
jbe 0x10048993
mov esi, dword [edx + 4]
mov edi, dword [edx + 0x1c]
cwde
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov esi, dword [ebp - 0x18]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
jmp 0x100489b6
mov eax, dword [ebp - 8]
mov edx, dword [edx + 0x14]
xorps xmm1, xmmword [0x10067270]
mov eax, dword [eax + 4]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov ecx, dword [ebp - 0xc]
xor edi, edi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov byte [esi], cl
mov byte [esi + 1], dl
divss xmm1, xmm0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
movss dword [ebp - 0x1c], xmm1
cmp dword [esi - 8], edi
jle 0x10048ad4
mov ecx, dword [ebx + 0x10]
shl eax, 4
add ecx, 6
add eax, ecx
mov dword [ebp - 0x18], eax
nop
mov edx, dword [esi - 0xc]
test edx, edx
jne 0x100489fe
mov edx, dword [esi - 0x10]
add edx, edi
jmp 0x10048a01
mov edx, dword [edx + edi*4]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ecx + 0x1c]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0
addsd xmm0, qword [eax*8 + 0x10067120]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 8]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x10067120]
cvtpd2ps xmm2, xmm0
mulss xmm2, xmm1
call fcn.10043340
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.10045610
mov ecx, dword [ebp - 0x10]
inc edi
movss xmm1, dword [ebp - 0x1c]
add esp, 0x18
movzx eax, word [ecx + 0x18]
movzx edx, word [ecx + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, edx
sub ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x24]
dec eax
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov word [ecx - 2], ax
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + 0x1c]
mov ecx, eax
mov dword [ebp - 0x14], eax
sub ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add ecx, edx
dec eax
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov word [ecx], ax
add ecx, 0x10
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
cmp edi, dword [esi - 8]
jl 0x100489f0
mov edx, dword [ebp - 8]
add esi, 0x18
sub dword [ebx + 0xc], 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
jne 0x10048940
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret