Function at 0x1001a7a0
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 - 4], edx
mov esi, ecx
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0xc], eax
jle 0x1001aad8
mov edi, dword [ebx + 8]
xorps xmm3, xmm3
add edi, 0x14
mov dword [ebp - 0x14], edi
nop dword [eax]
movss xmm1, dword [edi - 0x14]
mov eax, 0x100
comiss xmm1, xmm3
jbe 0x1001a836
mov edi, dword [edx + 0x1c]
mov esi, dword [edx + 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 esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
jmp 0x1001a859
mov eax, dword [ebp - 4]
mov edx, dword [edx + 0x14]
xorps xmm1, xmmword [0x10034cc0]
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
movzx eax, byte [esi + 0x18]
xor ecx, ecx
mov byte [edi], al
movzx eax, byte [esi + 0x1c]
mov byte [edi + 1], al
mov eax, dword [ebp - 8]
divss xmm1, xmm0
mov dword [ebp - 0x28], ecx
movss dword [ebp - 0x1c], xmm1
cmp dword [edi - 8], ecx
jle 0x1001aac5
mov edx, dword [ebx + 0x10]
shl eax, 4
add edx, 6
add eax, edx
mov dword [ebp - 0x24], eax
mov edx, dword [edi - 0xc]
test edx, edx
jne 0x1001a89f
mov edx, dword [edi - 0x10]
add edx, ecx
jmp 0x1001a8a2
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 4]
call fcn.10016bf0
mov edx, eax
mov eax, dword [esi + 0x18]
movzx ecx, ax
mov dword [ebp - 0x30], ecx
movzx ecx, ax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 4]
addsd xmm0, qword [eax*8 + 0x10034c90]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm2, xmm1
addsd xmm0, qword [eax*8 + 0x10034c90]
movss dword [ebp - 0x34], xmm2
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x18], xmm0
call fcn.10016f40
mov dword [ebp - 0xc], eax
test eax, eax
jns 0x1001a924
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
movzx eax, ax
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], ecx
jmp 0x1001aa81
mov edi, dword [ebp - 0xc]
sub esp, 8
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov eax, 0x100
cwde
movzx ecx, byte [edi + esi + 2]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 3]
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]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + esi + 6]
mov dword [ebp - 0x2c], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
mulss xmm0, xmm2
add cx, ax
mov eax, dword [ebp - 0xc]
movsx edi, cx
addss xmm0, xmm3
movzx ecx, byte [eax + esi + 8]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [ebp - 0xc]
cvtps2pd xmm0, xmm0
movzx eax, byte [eax + esi + 9]
add cx, ax
mov eax, dword [ebp - 0x30]
movzx eax, ax
movsx esi, cx
movsd qword [ebp - 0x10], xmm0
fld qword [ebp - 0x10]
fstp qword [esp]
mov dword [ebp - 0x30], eax
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
movd xmm1, esi
xorps xmm0, xmm0
cvtdq2ps xmm1, xmm1
fstp qword [ebp - 0x40]
mulss xmm1, dword [ebp - 0x18]
subss 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_floor
movd xmm0, edi
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
fstp qword [ebp - 0x10]
mulss xmm0, dword [ebp - 0x34]
cvttsd2si eax, qword [ebp - 0x10]
addss xmm0, xmm1
mov dword [ebp - 0xc], eax
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_ceil
movd xmm1, dword [ebp - 0x2c]
xorps xmm0, xmm0
cvtdq2ps xmm1, xmm1
fstp qword [ebp - 0x48]
mulss xmm1, dword [ebp - 0x18]
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_ceil
movss xmm1, dword [ebp - 0x1c]
add esp, 8
mov esi, dword [ebp - 0x20]
xorps xmm3, xmm3
mov edi, dword [ebp - 0x14]
cvttsd2si ecx, qword [ebp - 0x40]
cvttsd2si edx, qword [ebp - 0x48]
fstp qword [ebp - 0x38]
cvttsd2si eax, qword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
sub eax, ecx
dec dx
add ax, word [esi + 0x14]
mov ecx, dword [ebp - 0x28]
add ax, dx
mov edx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x28], ecx
mov word [edx - 2], ax
mov ax, word [esi + 0x1c]
sub ax, word [ebp - 0xc]
dec ax
add ax, word [esi + 0x14]
add ax, word [ebp - 0x18]
mov word [edx], ax
add edx, 0x10
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], eax
cmp ecx, dword [edi - 8]
jl 0x1001a891
mov edx, dword [ebp - 4]
add edi, 0x18
sub dword [ebx + 0xc], 1
mov dword [ebp - 0x14], edi
jne 0x1001a7e0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret