Function at 0x1002b030
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, 0x98
mov eax, dword [0x1008f080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0xc], 0
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x44], edx
mov edx, 1
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x2c], 0
jle 0x1002b64f
movss xmm4, dword [0x10082b80]
add ecx, 8
mov dword [ebp - 0x34], ecx
xorps xmm3, xmm3
movss xmm1, dword [ecx - 8]
comiss xmm1, xmm3
jbe 0x1002b0fb
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 [ebp - 0xc]
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 [ebp - 0x10]
movd xmm0, eax
jmp 0x1002b11b
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
xorps xmm1, xmmword [0x100831c0]
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 - 0x34]
movaps xmm2, xmm4
cvtdq2ps xmm0, xmm0
movzx edi, byte [ecx + 0xc]
mov eax, edi
mov dword [esi + 0x18], edi
movzx edx, byte [ecx + 0xd]
divss xmm1, xmm0
shr eax, 0x1f
mov dword [esi + 0x1c], edx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movss dword [ebp - 0x28], xmm1
addsd xmm0, qword [eax*8 + 0x10083180]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, edx
movss dword [ebp - 0x70], xmm2
movaps xmm2, xmm4
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10083180]
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x78], xmm2
test edi, edi
jne 0x1002b18f
movss dword [ebp - 0x38], xmm3
jmp 0x1002b1b1
mov eax, 1
movd xmm0, edi
sub eax, edi
cvtdq2ps xmm0, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x38], xmm2
test edx, edx
jne 0x1002b1bc
movss dword [ebp - 0x3c], xmm3
jmp 0x1002b1de
mov eax, 1
movd xmm0, edx
sub eax, edx
cvtdq2ps xmm0, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x3c], xmm2
xor edx, edx
mov dword [ebp - 0x30], edx
cmp dword [ecx + 4], edx
jle 0x1002b636
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x44]
shl eax, 4
add edi, 8
add edi, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edi
mov eax, edx
cmp dword [edi + 4], 0
je 0x1002b608
mov eax, dword [ecx + 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ecx]
test eax, eax
jne 0x1002b223
mov edx, dword [ecx - 4]
add edx, dword [ebp - 0x30]
jmp 0x1002b226
mov edx, dword [eax + edx*4]
mov ecx, dword [ebp - 0xc]
call fcn.10025860
movzx ecx, word [esi + 0x14]
add word [edi], cx
add word [edi + 2], cx
sub word [edi - 4], cx
sub word [edi - 2], cx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x1c]
movzx ecx, byte [eax + edx + 0x23]
movzx eax, byte [eax + edx + 0x22]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
cmp eax, dword [ebp - 0x14]
jge 0x1002b288
lea edx, [edx + eax*4]
mov eax, 0x100
add edx, dword [ecx + 4]
cwde
movzx ecx, byte [edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x1002b2b0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
lea edx, [edx + eax*4]
mov eax, dword [ecx + 4]
movzx ecx, byte [edx + eax - 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x18]
movzx eax, byte [edx + eax - 3]
add cx, ax
mov edx, dword [ebp - 0x1c]
movzx eax, cx
cwde
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [esi + 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 + 0x10083180]
mov eax, dword [esi + 0x18]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x10083180]
cvtpd2ps xmm2, xmm0
mulss xmm2, xmm1
call fcn.10027c20
mov eax, dword [esi + 0x10]
movzx edi, word [edi + 2]
mov edx, dword [ebp - 0x18]
imul edi, eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x10]
movzx eax, word [edx]
add edi, dword [esi + 0x20]
mov ecx, dword [ecx + 0x1c]
add edi, eax
mov eax, dword [esi + 0x18]
movzx esi, word [edx - 4]
movzx edx, word [edx - 2]
sub esi, eax
sub edx, ecx
inc esi
movd xmm0, eax
inc edx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x1c]
addsd xmm0, qword [eax*8 + 0x10083180]
lea eax, [ebp - 8]
push eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x28]
movss dword [ebp - 0x14], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x10083180]
mov ecx, dword [ebp - 0xc]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x28]
movss dword [ebp - 0x24], xmm0
call fcn.10027b10
movss xmm3, dword [ebp - 0x24]
add esp, 0x1c
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x54]
push 0
push 0
push eax
lea eax, [ebp - 0x58]
push eax
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
movss xmm2, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
call fcn.10027c20
mov ecx, dword [ebp - 0x48]
add esp, 0x18
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], eax
test esi, esi
je 0x1002b4cb
test ecx, ecx
je 0x1002b4cb
movss xmm0, dword [ebp - 0x24]
lea eax, [ebp - 0x5c]
minss xmm0, dword [ebp - 0x14]
movss xmm2, dword [0x10082b50]
mov edx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 8]
divss xmm2, xmm0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.1002a520
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1002b4cb
movss xmm0, dword [ebp - 0x24]
lea ecx, [ebp - 0x90]
mov edi, dword [ebp - 0x60]
sub esp, 8
mov edx, esi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [esp], xmm0
push dword [ebp - 0x5c]
push edi
call fcn.10029c00
mov eax, dword [0x1008fb10]
add esp, 0x28
test edi, edi
je 0x1002b4a8
dec dword [eax + 0x318]
mov eax, dword [eax + 0xc4]
push edi
call eax
mov eax, dword [0x1008fb10]
add esp, 4
dec dword [eax + 0x318]
mov eax, dword [eax + 0xc4]
push esi
call eax
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [0x1008fb10]
test ecx, ecx
je 0x1002b4dd
dec dword [eax + 0x318]
mov eax, dword [eax + 0xc4]
push ecx
call eax
mov eax, dword [ebp - 0x10]
add esp, 4
mov edi, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
cmp ecx, 1
jbe 0x1002b522
mov esi, dword [eax + 0x10]
movzx eax, word [edi - 2]
movzx edx, word [edi - 4]
push ecx
movzx ecx, word [edi + 2]
push esi
push eax
mov eax, dword [ebp - 0x10]
imul ecx, esi
add ecx, dword [eax + 0x20]
movzx eax, word [edi]
add ecx, eax
call fcn.1002a990
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
jbe 0x1002b552
mov esi, dword [eax + 0x10]
movzx eax, word [edi - 2]
movzx edx, word [edi - 4]
push ecx
movzx ecx, word [edi + 2]
push esi
push eax
mov eax, dword [ebp - 0x10]
imul ecx, esi
add ecx, dword [eax + 0x20]
movzx eax, word [edi]
add ecx, eax
call fcn.1002abe0
add esp, 0xc
mov esi, dword [ebp - 0x64]
movzx eax, word [edi]
movd xmm0, dword [ebp - 0x68]
movss xmm1, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x6c]
cvtdq2ps xmm0, xmm0
mov word [esi], ax
movzx eax, word [edi + 2]
mov word [esi + 2], ax
movzx eax, word [edi - 4]
add ax, word [edi]
mulss xmm0, xmm1
mov edx, dword [ebp - 0x74]
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 [ebp - 0x70]
addss xmm0, dword [ebp - 0x38]
movss dword [esi + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x78]
addss xmm0, dword [ebp - 0x3c]
movss dword [esi + 0xc], xmm0
movzx eax, word [edi - 4]
add eax, ecx
mov ecx, dword [ebp - 0x34]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x70]
addss xmm0, dword [ebp - 0x38]
movss dword [esi + 0x14], xmm0
movzx eax, word [edi - 2]
add eax, edx
mov edx, dword [ebp - 0x30]
movd xmm0, eax
mov eax, dword [ebp - 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x78]
addss xmm0, dword [ebp - 0x3c]
movss dword [esi + 0x18], xmm0
mov esi, dword [ebp - 0x10]
jmp 0x1002b60f
mov dword [ebp - 0x40], 0
inc dword [ebp - 0x2c]
inc edx
add edi, 0x10
mov dword [ebp - 0x30], edx
add eax, 0x1c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
cmp edx, dword [ecx + 4]
jl 0x1002b202
movss xmm4, dword [0x10082b80]
xorps xmm3, xmm3
mov eax, dword [ebp - 0xc]
add ecx, 0x18
sub dword [ebx + 0xc], 1
mov dword [ebp - 0x34], ecx
jne 0x1002b0a2
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], edi
xor ecx, ebp
mov dword [esi + 0x1c], eax
mov eax, edx
pop edi
pop esi
call fcn.10046e53
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret