Function at 0x41f310
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, 0x48
push esi
xor eax, eax
mov dword [ebp - 8], edx
mov esi, ecx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x38], esi
cmp dword [ebx + 0xc], eax
jle 0x41f5c5
mov ecx, dword [ebx + 8]
xorps xmm0, xmm0
add ecx, 0x14
mov dword [ebp - 0xc], ecx
nop dword [eax]
movss xmm1, dword [ecx - 0x14]
mov eax, 0x100
comiss xmm1, xmm0
jbe 0x41f3a3
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 - 0x38]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
jmp 0x41f3c6
mov eax, dword [ebp - 8]
mov edx, dword [edx + 0x14]
xorps xmm1, xmmword [0x44ea40]
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
mov ecx, dword [ebp - 0xc]
xor edi, edi
cvtdq2ps xmm0, xmm0
movzx eax, byte [esi + 0x18]
mov byte [ecx], al
movzx eax, byte [esi + 0x1c]
mov byte [ecx + 1], al
divss xmm1, xmm0
mov eax, dword [ebp - 4]
movss dword [ebp - 0x10], xmm1
cmp dword [ecx - 8], edi
jle 0x41f5af
mov edx, dword [ebx + 0x10]
shl eax, 4
add edx, 6
add eax, edx
mov dword [ebp - 0x34], eax
nop
mov edx, dword [ecx - 0xc]
test edx, edx
jne 0x41f40e
mov edx, dword [ecx - 0x10]
add edx, edi
jmp 0x41f411
mov edx, dword [edx + edi*4]
mov ecx, dword [ebp - 8]
call fcn.0041a670
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x44ea10]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x1c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x44ea10]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
cvtpd2ps xmm0, xmm0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mulss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x2c], xmm0
call fcn.0041aaf0
add esp, 0x10
test eax, eax
jne 0x41f4a1
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], ecx
jmp 0x41f569
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, dword [ebp - 0x14]
sub esp, 8
mulss xmm0, dword [ebp - 0x1c]
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm1, dword [ebp - 0x3c]
fstp qword [ebp - 0x48]
mulss xmm1, dword [ebp - 0x2c]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, dword [ebp - 0x40]
fstp qword [ebp - 0x18]
mulss xmm0, dword [ebp - 0x1c]
cvttsd2si eax, qword [ebp - 0x18]
addss xmm0, xmm1
mov dword [ebp - 0x14], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm1, dword [ebp - 0x24]
fstp qword [ebp - 0x20]
mulss xmm1, dword [ebp - 0x2c]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si ecx, qword [ebp - 0x48]
add esp, 8
cvttsd2si edx, qword [ebp - 0x20]
fstp qword [ebp - 0x30]
cvttsd2si eax, qword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
movzx eax, word [esi + 0x18]
dec dx
sub ax, cx
inc edi
mov ecx, dword [ebp - 0xc]
add ax, dx
add ax, word [esi + 0x14]
mov edx, dword [ebp - 0x34]
mov word [edx - 2], ax
movzx eax, word [esi + 0x1c]
sub ax, word [ebp - 0x14]
dec ax
add ax, word [ebp - 0x2c]
add ax, word [esi + 0x14]
mov word [edx], ax
add edx, 0x10
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], eax
cmp edi, dword [ecx - 8]
jl 0x41f400
mov edx, dword [ebp - 8]
add ecx, 0x18
sub dword [ebx + 0xc], 1
xorps xmm0, xmm0
mov dword [ebp - 0xc], ecx
jne 0x41f350
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret