Function at 0x1001a2f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], edi
movzx edx, byte [eax + 0x3c]
mov eax, edx
and edx, 3
xor eax, 3
mov dword [ebp - 4], edx
cmp dword [edi], 0
mov dword [ebp - 0x10], eax
je 0x1001a567
mov ecx, dword [ebp + 8]
mov eax, ecx
dec ecx
mov dword [ebp + 8], ecx
test eax, eax
je 0x1001a567
mov esi, dword [edi]
mov ebx, dword [ebp - 8]
mov cl, byte [esi + 5]
movzx eax, cl
xor eax, 3
test dword [ebp - 0x10], eax
jne 0x1001a551
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x1001a364.10
movzx eax, byte [eax + 0x1001a59c]
jmp dword [eax*4 + 0x1001a578]
mov eax, dword [esi + 0x14]
mov ecx, ebx
mov edx, dword [esi + 0x30]
shl eax, 2
push 0
push eax
call fcn.10020a80
mov eax, dword [esi + 0x1c]
mov ecx, ebx
mov edx, dword [esi + 0x34]
shl eax, 2
push 0
push eax
call fcn.10020a80
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov edx, dword [esi + 0x2c]
shl eax, 4
push 0
push eax
call fcn.10020a80
mov eax, dword [esi + 0x18]
mov ecx, ebx
mov edx, dword [esi + 0x38]
shl eax, 2
push 0
push eax
call fcn.10020a80
mov eax, dword [esi + 0x20]
mov ecx, ebx
mov edx, dword [esi + 0x3c]
push 0
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.10020a80
mov eax, dword [esi + 0xc]
mov ecx, ebx
mov edx, dword [esi + 0x40]
shl eax, 3
push 0
push eax
call fcn.10020a80
push 0
push 0x50
mov edx, esi
mov ecx, ebx
call fcn.10020a80
mov edx, dword [ebp - 4]
add esp, 0x38
jmp case.0x1001a364.10
mov cl, byte [esi + 6]
xor ebx, ebx
test cl, cl
je 0x1001a437
lea edi, [esi + 0x10]
mov edx, dword [edi]
test edx, edx
je 0x1001a426
add dword [edx + 4], 0xffffffff
jne 0x1001a426
lea eax, [edx + 8]
cmp dword [edx], eax
jne 0x1001a426
mov ecx, dword [ebp - 8]
push 0
push 0x18
call fcn.10020a80
add esp, 8
mov cl, byte [esi + 6]
inc ebx
movzx eax, cl
add edi, 4
cmp ebx, eax
jl 0x1001a404
mov edi, dword [ebp - 0xc]
movzx eax, cl
mov edx, esi
mov ecx, dword [ebp - 8]
push 0
lea eax, [eax*4 + 0x10]
push eax
call fcn.10020a80
mov edx, dword [ebp - 4]
add esp, 8
jmp case.0x1001a364.10
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
jmp 0x1001a53d
cmp dword [esi + 0x14], 0
je 0x1001a489
mov cl, byte [esi + 7]
mov eax, 1
mov edx, dword [esi + 0x10]
shl eax, cl
mov ecx, ebx
shl eax, 5
push 0
push eax
call fcn.10020a80
add esp, 8
mov eax, dword [esi + 8]
mov ecx, ebx
mov edx, dword [esi + 0xc]
shl eax, 4
push 0
push eax
call fcn.10020a80
push 0
push 0x20
mov edx, esi
mov ecx, ebx
call fcn.10020a80
mov edx, dword [ebp - 4]
add esp, 0x10
jmp case.0x1001a364.10
mov edx, dword [esi + 0x20]
mov ecx, esi
call fcn.10018ef0
cmp dword [esi + 0x20], 0
je 0x1001a4e7
lea eax, [esi + 0x34]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.10028280
mov eax, dword [esi + 0x60]
mov ecx, esi
mov edx, dword [esi + 0x20]
shl eax, 4
push 0
push eax
call fcn.10020a80
add esp, 8
push 0
push 0x7c
lea edx, [esi - 4]
mov ecx, ebx
call fcn.10020a80
mov edx, dword [ebp - 4]
add esp, 8
jmp case.0x1001a364.10
mov eax, dword [esi + 0xc]
add eax, 0x18
jmp 0x1001a53d
mov edx, dword [ebx + 0x10]
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x18]
dec ecx
and ecx, dword [esi + 8]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
cmp eax, esi
je 0x1001a529
nop dword [eax + eax]
lea ecx, [eax + 0xc]
mov eax, dword [ecx]
cmp eax, esi
jne 0x1001a520
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
dec dword [edx + 0x1c]
movzx eax, byte [esi + 7]
jmp 0x1001a53a
mov eax, dword [esi + 0xc]
add eax, 0x11
push 0
push eax
mov edx, esi
mov ecx, ebx
call fcn.10020a80
mov edx, dword [ebp - 4]
add esp, 8
jmp case.0x1001a364.10
and cl, 0xf8
mov edi, esi
or cl, dl
mov dword [ebp - 0xc], edi
mov byte [esi + 5], cl
cmp dword [edi], 0
jne 0x1001a321
xor eax, eax
cmp dword [edi], eax
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret