Function at 0x1001e0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
call 0x1001e0c1
pop eax
cmp edx, 0xa8bf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
jbe 0x1001e0f7
cmp eax, 1
jbe 0x1001e51e
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x24], ecx
jne 0x1001e114
jmp 0x1001e516
test eax, eax
je 0x1001e528
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x24], ecx
je 0x1001e516
mov edi, dword [eax]
add dword [esp + 0x24], edi
jmp 0x1001e12e
movzx eax, byte [edi]
test al, al
js 0x1001e150
mov ecx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 8]
jmp 0x1001e1c8
movzx esi, byte [edi + 1]
mov ecx, eax
and ecx, 0x1f
and esi, 0x3f
cmp al, 0xdf
jbe 0x1001e194
movzx edx, byte [edi + 2]
shl esi, 6
and edx, 0x3f
or edx, esi
cmp al, 0xf0
jb 0x1001e1a0
movzx eax, byte [edi + 3]
and ecx, 7
shl edx, 6
shl ecx, 0x12
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x1001e516
add edi, 4
jmp 0x1001e1aa
shl ecx, 6
add edi, 2
or ecx, esi
mov eax, ecx
jmp 0x1001e1aa
shl ecx, 0xc
add edi, 3
or edx, ecx
mov eax, edx
mov ecx, dword [esp + 0x1c]
cmp eax, 0x80
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc], ecx
jae 0x1001e245
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ch, al
xor edx, edx
add ch, 0xbf
cmp ch, 0x1a
setb dl
shl edx, 5
or eax, edx
movd xmm0, eax
mov dword [esp + 0x10], eax
mov esi, 0x110001
movss xmm2, xmm0
mov edx, dword [esp + 0xc]
mov eax, 0x110002
lea edi, [esi - 0x110000]
mov ecx, 3
movaps xmmword [esp + 0x30], xmm2
sub eax, esi
cmp edi, 3
cmovae eax, ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
sub ecx, edx
cmp ecx, eax
jb 0x1001e2fb
cmp edi, 3
lea eax, [esi - 0x10ffff]
mov ecx, 0
mov edi, dword [esp + 0xc]
movaps xmm1, xmm2
cmovae eax, ecx
mov eax, dword [eax*4 + 0x1001e53c]
add eax, dword [esp + 0x20]
jmp eax
xor esi, esi
mov ecx, 0x57f
mov edx, 0x57f
mov edi, 0xff
jmp 0x1001e26a
mov edx, ecx
sub ecx, esi
jbe 0x1001e1de
shr ecx, 1
xor ebx, ebx
add ecx, esi
cmp dword [ecx*8 + 0x102c45a4], eax
setne bl
cmovb ebx, edi
cmp bl, 1
je 0x1001e260
movzx esi, bl
cmp esi, 0xff
jne 0x1001e29b
inc ecx
mov esi, ecx
mov ecx, edx
sub ecx, esi
ja 0x1001e26a
jmp 0x1001e1de
mov eax, dword [ecx*8 + 0x102c45a8]
movdqa xmm0, xmmword [0x102bfe40]
mov ecx, eax
xor ecx, 0xd800
add ecx, 0xffef0000
cmp ecx, 0xffef0800
setb cl
cmp eax, 0x110000
sete dl
or dl, cl
mov edx, 0x69
cmovne eax, edx
jne 0x1001e2d9
pxor xmm0, xmm0
pshufd xmm1, xmm0, 0x55
mov dword [esp + 0x10], eax
movq qword [esp + 0x14], xmm0
movd esi, xmm1
test esi, esi
je 0x1001e312
movsd xmm2, qword [esp + 0x10]
jmp 0x1001e1ef
mov ecx, dword [esp + 0xc]
push eax
call fcn.1001d090
movaps xmm2, xmmword [esp + 0x34]
add esp, 4
jmp 0x1001e220
movss xmm1, dword [esp + 0x10]
movd eax, xmm0
test eax, eax
movss xmm2, xmm1
je 0x1001e331
unpcklps xmm2, xmm0
mov esi, 0x110000
jmp 0x1001e1ef
mov esi, 0x110001
jmp 0x1001e1ef
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x102c0318
push eax
push 1
jmp 0x1001e531
push 0x102c0308
push 0
push 0
call fcn.100273d0
add esp, 0xc
ud2