Function at 0x101a2fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ad4f0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0
movzx eax, byte [esi + 0xc]
mov byte [esi + 0xc], 0
movzx edi, word [esi + 8]
mov byte [ebp - 0x1d], al
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
mov edx, dword [esi]
test di, di
je 0x101a3060
jmp 0x101a3090
mov ecx, dword [ebp - 0x44]
mov word [ecx + eax*2], di
inc eax
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [esi]
test di, di
jne 0x101a3090
nop
cmp edx, eax
je 0x101a31d3
lea ecx, [edx + 1]
mov dword [ebp - 0x24], ebx
mov dword [esi], ecx
movzx ebx, byte [edx]
movzx edi, bl
test bl, bl
js 0x101a30b0
mov ebx, dword [ebp - 0x24]
jmp 0x101a3167
mov word [esi + 8], 0
mov dword [ebp - 0x34], 0
jmp 0x101a3170
lea ecx, [edx + 2]
and edi, 0x1f
mov eax, esi
mov dword [esi], ecx
mov esi, edi
movzx edi, byte [edx + 1]
and edi, 0x3f
cmp bl, 0xdf
jbe 0x101a3140
lea ecx, [edx + 3]
mov dword [ebp - 0x2c], esi
shl edi, 6
mov dword [eax], ecx
movzx esi, byte [edx + 2]
and esi, 0x3f
or esi, edi
cmp bl, 0xf0
jb 0x101a314e
lea ecx, [edx + 4]
mov edi, dword [ebp - 0x2c]
shl esi, 6
mov dword [eax], ecx
movzx edx, byte [edx + 3]
and edi, 7
shl edi, 0x12
and edx, 0x3f
or edx, esi
or edi, edx
mov ebx, dword [ebp - 0x24]
cmp edi, 0xffff
jbe 0x101a3161
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0xff0000]
and edi, 0x3ff
mov edx, ecx
shr esi, 0xa
or edi, 0xdc00
or esi, 0xd800
mov word [eax + 8], di
mov dword [ebp - 0x34], edi
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 0x30]
jmp 0x101a3170
mov ebx, dword [ebp - 0x24]
shl esi, 6
or esi, edi
mov edi, esi
mov esi, eax
jmp 0x101a3164
mov edi, dword [ebp - 0x2c]
shl edi, 0xc
or edi, esi
mov ebx, dword [ebp - 0x24]
cmp edi, 0xffff
ja 0x101a3108
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov edx, ecx
cmp di, 0x22
jne 0x101a318a
mov edi, dword [ebp - 0x34]
xor bl, 1
test di, di
je 0x101a3060
jmp 0x101a3090
movzx ecx, di
cmp ecx, 0x3b
jne 0x101a3197
test bl, 1
je 0x101a31cf
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x40]
jne 0x101a3043
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], 0
call fcn.10195060
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
jmp 0x101a3043
mov byte [esi + 0xc], 1
mov edx, dword [ebp - 0x28]
test edx, edx
setne al
or byte [ebp - 0x1d], al
je 0x101a3217
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x54]
push edx
push eax
push ecx
call fcn.1019a100
add esp, 0xc
movsd xmm0, qword [ebp - 0x54]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x4c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x101a3227
jmp 0x101a3237
mov eax, dword [ebp + 8]
mov dword [eax], 0x80000000
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x101a3237
add eax, eax
push 2
push eax
push dword [ebp - 0x3c]
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret