Function at 0x41a1e0
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
mov esi, edx
xor eax, eax
mov edx, ecx
mov dword [ebp - 0x40], esi
push edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
cmp dword [ebx + 0xc], eax
jle 0x41a4e1
mov al, byte [edx + 0x18]
xorps xmm0, xmm0
mov edi, dword [ebx + 8]
mov dword [ebp - 8], eax
add edi, 0x14
mov al, byte [edx + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], edi
nop dword [eax + eax]
movss xmm1, dword [edi - 0x14]
mov eax, 0x100
comiss xmm1, xmm0
jbe 0x41a283
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 4]
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 edi, dword [ebp - 0x18]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
jmp 0x41a2a3
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 4]
xorps xmm1, xmmword [0x48c600]
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 - 8]
xor esi, esi
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov byte [edi], cl
mov byte [edi + 1], dl
divss xmm1, xmm0
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
movss dword [ebp - 0x3c], xmm1
cmp dword [edi - 8], esi
jle 0x41a4cb
mov ecx, dword [ebx + 0x10]
shl eax, 4
add ecx, 6
add eax, ecx
mov dword [ebp - 0x14], eax
nop dword [eax]
mov edx, dword [edi - 0xc]
test edx, edx
jne 0x41a2ee
mov edx, dword [edi - 0x10]
add edx, esi
jmp 0x41a2f1
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 0x40]
call fcn.00414c10
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx + 0x18]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x48c5c0]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x40]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x48c5c0]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
cvtpd2ps xmm0, xmm0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
call fcn.00415020
add esp, 0x10
test eax, eax
jne 0x41a383
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], edi
jmp 0x41a46e
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, dword [ebp - 0xc]
sub esp, 8
mulss xmm0, dword [ebp - 8]
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x38], xmm0
fld qword [ebp - 0x38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x38]
movsd xmm0, qword [ebp - 0x38]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x44]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x24]
cvttss2si edi, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x38], xmm0
fld qword [ebp - 0x38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x38]
movsd xmm0, qword [ebp - 0x38]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mulss xmm0, dword [ebp - 8]
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x10], xmm0
fld qword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x10]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x1c]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x24]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [ebp - 0xc], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x2c]
inc esi
movss xmm1, dword [ebp - 0x3c]
movzx eax, word [edx + 0x18]
movzx ecx, word [edx + 0x14]
mov dword [ebp - 8], eax
mov eax, ecx
sub eax, edi
movzx edi, word [edx + 0x18]
movzx edx, word [edx + 0x1c]
add eax, edi
mov edi, dword [ebp - 0xc]
dec edi
mov dword [ebp - 0xc], edx
add eax, edi
mov edi, dword [ebp - 0x14]
mov word [edi - 2], ax
mov eax, edx
sub eax, dword [ebp - 0x34]
add eax, ecx
mov ecx, dword [ebp - 0x24]
dec ecx
add eax, ecx
mov ecx, edi
mov edi, dword [ebp - 0x18]
mov word [ecx], ax
add ecx, 0x10
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
cmp esi, dword [edi - 8]
jl 0x41a2e0
mov esi, dword [ebp - 0x40]
add edi, 0x18
sub dword [ebx + 0xc], 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], edi
jne 0x41a230
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret