Function at 0x100a2ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x18], ecx
push edi
mov ecx, dword [esi + 0x1b4]
mov edi, dword [esi + 0x12c]
mov ebx, dword [esi + 0x130]
mov ebp, dword [esi + 0x110]
mov eax, dword [esi + 0x128]
mov dword [esp + 0x24], ecx
mov ecx, 0x20
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x114]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebp
sub ecx, dword [esi + 0xc]
jne 0x100a2f71
mov edi, dword [esi + 0x14]
test edi, edi
jne 0x100a2f51
pop edi
pop esi
pop ebp
lea eax, [ecx + 2]
pop ebx
add esp, 0x1c
ret
mov edx, dword [esi + 0x10]
shr dword [esi + 8], 8
movzx ecx, byte [edx]
shl ecx, 0x18
or dword [esi + 8], ecx
lea ecx, [edi - 1]
add dword [esi + 0xc], 0xfffffff8
mov dword [esi + 0x14], ecx
lea ecx, [edx + 1]
mov dword [esi + 0x10], ecx
cmp eax, dword [esp + 0x1c]
jae 0x100a30f2
nop dword [eax + eax]
mov dword [esp + 0x28], ebp
test ebx, ebx
je 0x100a30f2
cmp dword [esi + 0x14], 2
jb 0x100a311d
mov edi, dword [esi + 0xc]
cmp edi, 0x10
jb 0x100a2fc5
mov edx, dword [esi + 0x10]
xor edi, 0x10
movzx ecx, word [esi + 0xa]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
movzx ebp, word [edx]
shl ebp, 0x10
or ebp, ecx
add dword [esi + 0x14], 0xfffffffe
lea ecx, [edx + 2]
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ecx
jmp 0x100a2fc8
mov ebp, dword [esi + 8]
mov ecx, edi
mov edx, ebp
shr edx, cl
and edx, dword [0x1017cae4]
movzx ecx, byte [esi + edx*4 + 0x134]
add ecx, edi
mov dword [esi + 0xc], ecx
movzx edi, word [esi + edx*4 + 0x136]
cmp edi, 0x10
jae 0x100a3035
mov dword [esp + 0x18], 0
test edi, edi
je 0x100a302b
mov ecx, dword [esi + edi*4 + 0x758]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov word [edx + ecx*2], ax
mov edx, 0x8000
mov ecx, edi
mov dword [esi + edi*4 + 0x758], eax
shr edx, cl
sub ebx, edx
inc word [esi + edi*2 + 0x7ea]
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x14]
inc eax
jmp 0x100a30e8
xor ebx, ebx
cmp edi, 0x10
setne bl
shr ebp, cl
add ebx, 2
lea edx, [ecx + ebx]
mov ebx, dword [ebx*4 + 0x1017cad0]
xor ecx, ecx
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x20]
and ebx, ebp
mov ebp, dword [esp + 0x14]
cmp edi, 0x10
cmovne edx, ecx
cmp edi, 0x10
setne cl
add ecx, 2
cmp ebp, edx
cmovne ebp, edx
xor edi, edi
cmp dword [esp + 0x28], edx
mov dword [esp + 0x14], ebp
cmove edi, dword [esp + 0x18]
mov edx, edi
test edi, edi
je 0x100a3089
lea edx, [edi - 2]
shl edx, cl
lea ecx, [ebx + 3]
add ecx, edx
mov ebx, ecx
mov dword [esp + 0x18], ecx
sub ebx, edi
lea edx, [ebx + eax]
cmp edx, dword [esp + 0x1c]
ja 0x100a3105
test ebp, ebp
je 0x100a30e2
mov ecx, dword [esi + ebp*4 + 0x758]
mov ebp, dword [esp + 0x24]
add ecx, ecx
mov word [ecx + ebp], ax
mov edi, eax
lea ecx, [eax + eax]
inc eax
cmp eax, edx
jne 0x100a30b0
mov ebp, dword [esp + 0x14]
mov ecx, 0xf
sub ecx, ebp
mov edx, ebx
shl edx, cl
sub dword [esp + 0x10], edx
mov dword [esi + ebp*4 + 0x758], edi
add word [esi + ebp*2 + 0x7ea], bx
jmp 0x100a30e4
mov eax, edx
mov ebx, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jb 0x100a2f80
pop edi
mov dword [esi + 0x130], ebx
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebx, 0xfffff
mov eax, 1
pop edi
mov dword [esi + 0x130], ebx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x18]
mov dword [esi + 0x128], eax
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0x114], eax
mov eax, 2
mov dword [esi + 0x110], ebp
mov dword [esi + 0x130], ebx
mov dword [esi + 0x12c], edx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret