Function at 0x100a7da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100ca040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100db814], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
je 0x100a805b
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x100a805b
mov ecx, dword [0x1013ee70]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x100a805b
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0x28]
lea ecx, [ebx + 8]
call edx
imul eax, eax, 0xb88
lea eax, [eax + 0x100dd59c]
test eax, eax
je 0x100a805b
push eax
call fcn.1009c660
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100a805b
cmp byte [eax + 0x458], 0
je 0x100a805b
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x9c], ebx
jle 0x100a805b
xor edx, edx
xor edi, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 0xa0]
add eax, edi
add eax, esi
je 0x100a803b
test dword [eax + 0xa0], 0x100
je 0x100a803b
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x100a803b
cmp ebx, 0x7f
ja 0x100a7ed2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x45c]
add eax, edx
je 0x100a7ed2
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 0x1c]
movss xmm2, dword [eax + 0x2c]
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0x2c], xmm1
movss dword [ebp - 0x28], xmm2
cmp ecx, 0x7f
ja 0x100a7f06
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ecx + 0x45c]
je 0x100a7f06
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 0x1c]
movss xmm2, dword [eax + 0x2c]
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x38], xmm1
movss dword [ebp - 0x34], xmm2
mov edx, dword [0x1013f048]
mov eax, dword [ebp - 0x18]
add edx, 0xffffffd5
xor edx, 0xef6c9561
mov ecx, dword [edx + eax]
mov eax, dword [0x100ca2a8]
cmp ecx, dword [edx + eax]
jne 0x100a7f32
mov ecx, dword [0x1013ef10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov eax, dword [0x100d0258]
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
call fcn.1009abd0
test al, al
je 0x100a803b
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x3c]
call fcn.1009abd0
test al, al
je 0x100a803b
mov ecx, dword [ebp - 0x18]
movd xmm0, dword [ebp + 0xc]
add ecx, 8
cvtdq2ps xmm0, xmm0
mov eax, dword [ecx]
movss dword [ebp - 0xc], xmm0
mov eax, dword [eax + 0x24]
call eax
test al, al
mov eax, dword [ebp - 8]
jne 0x100a7fad
movss xmm1, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 0x18
xorps xmm2, xmm2
maxss xmm1, xmm2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
minss xmm1, dword [0x100bfad4]
mulss xmm1, xmm0
movss dword [ebp - 0xc], xmm1
movzx ecx, byte [0x100d025b]
xorps xmm0, xmm0
movzx edx, byte [ebp - 0x1a]
mov edi, dword [0x1013ee44]
movd xmm1, ecx
cvttss2si ecx, dword [ebp - 0xc]
mov ebx, dword [edi]
cvtdq2ps xmm1, xmm1
movzx ecx, cl
maxss xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
minss xmm1, dword [0x100bfad4]
mulss xmm1, xmm0
cvttss2si ecx, xmm1
movzx esi, cl
mov ecx, edi
shl esi, 8
or esi, edx
movzx edx, ah
shl esi, 8
or esi, edx
movzx eax, al
shl esi, 8
or esi, eax
mov eax, dword [ebx + 0x38]
push esi
call eax
cvttss2si eax, dword [ebp - 0x44]
mov ecx, dword [0x1013ee44]
mov edx, dword [ecx]
push eax
cvttss2si eax, dword [ebp - 0x48]
push eax
cvttss2si eax, dword [ebp - 0x4c]
push eax
cvttss2si eax, dword [ebp - 0x50]
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x24]
add dword [ebp - 0x10], 0x30
inc ebx
mov edx, dword [ebp - 0x10]
add edi, 0xd8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edi
cmp ebx, dword [esi + 0x9c]
jl 0x100a7e76
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ac9dc
mov esp, ebp
pop ebp
ret 8