Function at 0x42b950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x4c
push esi
mov esi, ecx
mov dword [esp + 0x2c], 1
xorps xmm2, xmm2
mov dword [esp + 0x4c], esi
mov eax, edx
movss dword [esp + 0x34], xmm2
push edi
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
movss xmm1, dword [ecx]
comiss xmm1, xmm2
jbe 0x42b9de
mov edi, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov eax, 0x100
cwde
movzx ecx, byte [edx + edi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 7]
movzx edx, byte [edx + edi + 5]
add cx, ax
movsx esi, cx
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 0x1c]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
mov esi, dword [esp + 0x50]
movd xmm0, eax
jmp 0x42b9fe
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
xorps xmm1, xmmword [0x4e7230]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov edx, dword [esp + 0x58]
cvtdq2ps xmm0, xmm0
movzx edi, byte [edx + 0x14]
mov eax, edi
mov dword [esi + 0x1c], edi
movss xmm4, dword [0x4e6934]
movzx ecx, byte [edx + 0x15]
movaps xmm3, xmm4
divss xmm1, xmm0
shr eax, 0x1f
mov dword [esi + 0x20], ecx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movss dword [esp + 0x44], xmm1
addsd xmm0, qword [eax*8 + 0x4e70d0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm3, xmm0
movd xmm0, ecx
movss dword [esp + 0x1c], xmm3
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x4e70d0]
mov eax, 1
cvtpd2ps xmm0, xmm0
divss xmm4, xmm0
movss dword [esp + 0x14], xmm4
test edi, edi
je 0x42ba96
movd xmm0, edi
sub eax, edi
cvtdq2ps xmm0, xmm0
movd xmm2, eax
mov eax, 1
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [esp + 0x3c], xmm2
test ecx, ecx
je 0x42babe
movd xmm0, ecx
sub eax, ecx
cvtdq2ps xmm0, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [esp + 0x38], xmm2
xor ecx, ecx
mov dword [esp + 0x34], ecx
cmp dword [edx + 0xc], ecx
jle 0x42be23
mov edi, dword [esp + 0x60]
mov dword [esp + 0x40], ecx
add edi, 8
nop dword [eax + eax]
cmp dword [edi + 4], 0
je 0x42be05
movzx eax, word [edi - 4]
mov dword [esp + 0x2c], eax
test ax, ax
je 0x42be05
movzx eax, word [edi - 2]
mov dword [esp + 0x28], eax
test ax, ax
je 0x42be05
mov eax, dword [edx + 0x10]
add eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
test eax, eax
jne 0x42bb25
mov edx, dword [edx + 4]
add edx, ecx
jmp 0x42bb28
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x4c]
call fcn.00425b50
movzx ecx, word [esi + 0x14]
add word [edi], cx
add word [edi + 2], cx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov word [edi - 4], ax
mov eax, dword [esp + 0x28]
sub eax, ecx
mov word [edi - 2], ax
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 4]
movzx ecx, byte [eax + ecx + 0x23]
movzx eax, byte [eax + esi + 0x22]
mov esi, dword [esp + 0x50]
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
cmp ecx, eax
mov eax, dword [edx + 4]
jge 0x42bba2
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x4c]
add edx, dword [eax + 0x20]
mov eax, 0x100
cwde
movzx ecx, byte [edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x42bbc6
mov ecx, dword [esp + 0x2c]
mov edx, dword [edx + 0x20]
lea esi, [eax + ecx*4]
mov eax, 0x100
movzx ecx, byte [esi + edx - 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx - 3]
mov esi, dword [esp + 0x50]
add cx, ax
mov edx, dword [esp + 0x48]
movzx eax, cx
cwde
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x50]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0x20]
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 + 0x4e70d0]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x4e70d0]
cvtpd2ps xmm2, xmm0
mulss xmm2, xmm1
call fcn.004284d0
mov ecx, dword [esi + 0x20]
add esp, 0x18
mov edx, dword [esi + 0x1c]
mov eax, ecx
shr eax, 0x1f
mov esi, dword [esi + 0x10]
push dword [esp + 0x48]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
addsd xmm0, qword [eax*8 + 0x4e70d0]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x58]
movss dword [esp + 4], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x4e70d0]
movzx eax, word [edi - 2]
sub eax, ecx
mov ecx, dword [esp + 0x60]
inc eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x58]
movss dword [esp], xmm0
push esi
push eax
movzx eax, word [edi - 4]
sub eax, edx
movzx edx, word [edi + 2]
imul edx, esi
inc eax
mov esi, dword [esp + 0x6c]
push eax
movzx eax, word [edi]
add edx, eax
add edx, dword [esi + 0x24]
call fcn.0042b280
mov eax, dword [esi + 0x1c]
add esp, 0x20
cmp eax, 1
jbe 0x42bd11
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
mov esi, dword [esp + 0x58]
push eax
movzx eax, word [edi]
add ecx, eax
add ecx, dword [esi + 0x24]
call fcn.0042b4a0
add esp, 0xc
mov eax, dword [esi + 0x20]
cmp eax, 1
jbe 0x42bd42
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
push eax
movzx eax, word [edi]
add ecx, eax
mov eax, dword [esp + 0x5c]
add ecx, dword [eax + 0x24]
call fcn.0042b700
add esp, 0xc
mov esi, dword [esp + 0x24]
movzx eax, word [edi]
movd xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
cvtdq2ps xmm0, xmm0
mov word [esi], ax
movzx eax, word [edi + 2]
mov word [esi + 2], ax
movzx eax, word [edi]
add ax, word [edi - 4]
mulss xmm0, xmm1
mov edx, dword [esp + 0x18]
mov word [esi + 4], ax
movzx eax, word [edi - 2]
add ax, word [edi + 2]
movss dword [esi + 0x10], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov word [esi + 6], ax
mulss xmm0, dword [esp + 0x1c]
addss xmm0, dword [esp + 0x3c]
movss dword [esi + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x14]
addss xmm0, dword [esp + 0x38]
movss dword [esi + 0xc], xmm0
movzx eax, word [edi - 4]
add eax, ecx
mov ecx, dword [esp + 0x34]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x1c]
addss xmm0, dword [esp + 0x3c]
movss dword [esi + 0x14], xmm0
movzx eax, word [edi - 2]
add eax, edx
mov edx, dword [esp + 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x14]
addss xmm0, dword [esp + 0x38]
movss dword [esi + 0x18], xmm0
mov esi, dword [esp + 0x50]
jmp 0x42be0d
mov dword [esp + 0x30], 0
add dword [esp + 0x40], 0x1c
inc ecx
add edi, 0x10
mov dword [esp + 0x34], ecx
cmp ecx, dword [edx + 0xc]
jl 0x42bae0
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
pop edi
pop esi
add esp, 0x4c
ret