Function at 0x100811a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [ebp + 0x10]
mov edx, ecx
push esi
push edi
mov dword [esp + 0x10], edx
cmp dword [eax + 0xc], 0x400
jle 0x100814e2
cmp dword [edx + 0x8ac], 3
jne 0x100814e2
cmp dword [edx + 0x664], 2
jne 0x100814e2
mov eax, dword [edx + 0xa40]
mov eax, dword [eax]
test al, 0x10
je 0x100814e2
test al, 0x40
jne 0x100814e2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100814e2
cmp byte [eax + 0x850], 0
jne 0x100814e2
mov eax, dword [edx + 0x2f00]
mov ecx, dword [eax + 8]
mov eax, ecx
shr eax, 0xe
and eax, 0x3f
mov dword [esp + 0x18], eax
jbe 0x100814e2
movss xmm2, dword [0x101a4d7c]
mov edi, 1
shr ecx, 0x1a
mov esi, edi
and ecx, 0xf
mov eax, dword [edx + 0x2f00]
shl esi, cl
movaps xmm1, xmm2
push 0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
shrd ecx, eax, 0x1e
divss xmm1, xmm0
and ecx, 0xf
shl edi, cl
push edi
push esi
push 1
movss xmm0, dword [edx + 0x8d0]
mulss xmm0, xmm1
movss dword [esp + 0x50], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss xmm0, dword [edx + 0x8d4]
mulss xmm0, xmm2
movss dword [esp + 0x54], xmm0
movss xmm0, dword [edx + 0x900]
mulss xmm0, xmm1
movss dword [esp + 0x58], xmm0
movss xmm0, dword [edx + 0x904]
mov edx, dword [edx + 0x2f00]
mulss xmm0, xmm2
mov eax, dword [edx + 8]
movss dword [esp + 0x5c], xmm0
and eax, 0x3fff
mov ecx, dword [edx + 0x58]
xor edx, edx
and ecx, 0x1ff
shl ecx, 5
sub eax, ecx
mov ecx, dword [ebp + 0x10]
div dword [esp + 0x28]
movups xmm0, xmmword [ecx]
movaps xmmword [esp + 0x40], xmm0
sub dword [esp + 0x4c], eax
psrldq xmm0, 4
movd ecx, xmm0
sub ecx, eax
xor eax, eax
mov dword [esp + 0x44], ecx
cvtdq2ps xmm0, xmmword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x325c]
movd xmm2, eax
movaps xmmword [esp + 0x70], xmm0
movaps xmm1, xmm2
movd xmm0, esi
punpckldq xmm1, xmm0
movd xmm0, edi
punpckldq xmm2, xmm0
punpckldq xmm1, xmm2
movaps xmmword [esp + 0x60], xmm1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100813a1
mov ecx, dword [esi + 0x325c]
lea edi, [esp + 0x50]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov edx, dword [ecx]
push dword [edi + 8]
call dword [edx + 0x70]
mov ecx, dword [esi + 0x325c]
lea edx, [esp + 0x60]
push 1
push 0
push edx
push dword [esp + 0x20]
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push edx
push dword [edi + 8]
call dword [eax + 0x78]
mov ecx, dword [esi + 0x325c]
lea edx, [esp + 0x50]
push edx
push dword [edi + 8]
mov eax, dword [ecx]
push dword [esp + 0x1c]
call dword [eax + 0x70]
push dword [esp + 0x14]
mov ecx, dword [esi + 0x325c]
call fcn.10029920
jmp 0x100813a4
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x3448]
lea edx, [esp + 0x30]
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebp + 8], 0
je 0x100814d8
mov esi, dword [esi + 0x3448]
add esi, 0x18b0
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov eax, dword [esi]
movzx eax, word [eax + 4]
mov dword [esp + 0x18], eax
mov word [esp + 0x24], ax
test ax, ax
je 0x100814d8
nop dword [eax]
movzx edi, ax
mov eax, dword [ecx]
mov eax, dword [eax + edi*8]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax + 0xc]
mov edx, ecx
mov eax, dword [ebp + 8]
and edx, 0x3fff
mov eax, dword [eax + 0xc]
and eax, 0x3fff
cmp edx, eax
jbe 0x100814bb
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov eax, dword [eax + 0x54]
cmp eax, dword [esi + 0x54]
jae 0x100814bb
xor ecx, dword [esi + 0xc]
mov esi, dword [esp + 0x10]
test ecx, 0xfc000
jne 0x100814bb
cmp edx, eax
jae 0x100814bb
mov esi, dword [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
push 1
movzx ecx, word [esi + edi*8 + 6]
movzx eax, word [esi + edi*8 + 4]
mov word [esi + ecx*8 + 4], ax
movzx edx, word [esi + edi*8 + 4]
mov ecx, dword [esp + 0x14]
movzx eax, word [esi + edi*8 + 6]
mov esi, dword [esp + 0x14]
mov ecx, dword [ecx]
mov word [ecx + edx*8 + 6], ax
mov eax, 0xffff
add word [esi + 6], ax
movzx ecx, word [esi + 6]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx]
mov ecx, dword [esp + 0x20]
movzx eax, word [eax + edi*8 + 4]
mov word [esp + 0x30], ax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
call dword [eax]
movzx eax, word [esp + 0x24]
mov ecx, dword [esp + 0x14]
jmp 0x100814cb
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ax, word [eax + edi*8 + 4]
mov word [esp + 0x24], ax
mov dword [esp + 0x18], eax
test ax, ax
jne 0x100813f0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc