Function at 0x492b71
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
push esi
push edi
test ebx, ebx
jne 0x492b8d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc984], 0xffffffff
jle 0x492ba2
mov eax, 0xfffffff6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
lea edi, [ebx + 0x11fb0]
mov eax, 0x4a2d20
mov ecx, 0x62
cmovne eax, edx
lea edx, [ebx + 0x12838]
mov esi, eax
mov dword [ebp - 0x2c], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x12138]
mov edi, 0x40
lea esi, [ebx + 0x9a0]
nop dword [eax]
nop dword [eax + eax]
lea eax, [esi - 0x80]
mov dword [ecx - 0x11e14], esi
mov dword [ecx - 0x11e18], eax
lea ecx, [ecx + 0x18]
mov dword [ecx - 0x14], edx
lea eax, [edx - 0x100]
mov dword [ecx - 0x18], eax
lea eax, [esi + 0x80]
mov dword [ecx - 0x11e28], eax
lea eax, [edx + 0x100]
mov dword [ecx - 0x10], eax
lea eax, [esi + 0x100]
mov dword [ecx - 0x11e24], eax
lea eax, [edx + 0x200]
mov dword [ecx - 0xc], eax
lea eax, [esi + 0x180]
mov dword [ecx - 0x11e20], eax
lea eax, [edx + 0x300]
mov dword [ecx - 8], eax
lea eax, [esi + 0x200]
mov dword [ecx - 0x11e1c], eax
add esi, 0x300
lea eax, [edx + 0x400]
add edx, 0x600
mov dword [ecx - 4], eax
sub edi, 1
jne 0x492be1
push dword [ebp - 0x2c]
add ebx, 0x320
xor edx, edx
mov ecx, ebx
mov dword [ebp - 8], ebx
call fcn.00497e61
mov eax, ebx
mov dword [ebp - 0x20], edi
add esp, 4
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 3
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ecx
nop dword [eax + eax]
xor edi, edi
mov dword [ebp - 0x10], edi
xor esi, esi
test ecx, ecx
js 0x492ced
lea eax, [eax + edi*8]
add eax, ecx
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov edx, edi
cmp esi, ebx
cmovl edx, dword [ebp - 0x30]
test edx, edx
je 0x492ce8
mov edi, dword [eax]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 8]
add eax, esi
lea eax, [ebx + eax*4]
mov ebx, dword [ebp - 0x18]
cmp edi, dword [eax]
je 0x492f58
inc ecx
add eax, 8
cmp ecx, edx
jl 0x492cd2
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
inc esi
cmp esi, ebx
jle 0x492cb4
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
add eax, edi
mov esi, dword [ebp - 8]
add edx, 0x12138
mov dword [ebp - 0x28], ecx
lea eax, [ebx + eax*2]
shl eax, 2
add edx, eax
add esi, eax
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x24], eax
mov ebx, dword [edx]
add ebx, eax
mov eax, dword [esi]
mov ax, word [ecx + eax]
add ax, ax
movzx ecx, ax
mov eax, ecx
mov edx, ecx
shr eax, 1
mov edi, ecx
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or eax, ecx
shr eax, 1
inc eax
imul eax, eax, 0x77cb531
shr eax, 0x1b
movzx esi, byte [eax + 0x4a36d4]
xor eax, eax
cmp eax, edx
sbb eax, eax
xor edx, edx
neg eax
dec eax
add esi, eax
mov eax, 1
mov word [ebx + 2], si
lea ecx, [esi + 0x10]
mov esi, dword [ebp - 0x3c]
shl eax, cl
div edi
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
inc eax
mov word [ebx], ax
add ecx, 2
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
cmp eax, 0x100
jl 0x492d18
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
inc edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
cmp edi, 3
jl 0x492ca6
add ecx, 4
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ecx
cmp ecx, 8
jl 0x492ca1
add dword [ebp - 0x20], 6
add esi, 3
add eax, 0x18
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
cmp esi, 0xc0
jl 0x492c92
mov eax, dword [ebp - 0x2c]
mov esi, 0x4a38d0
mov dword [ebp - 0x14], esi
movups xmm0, xmmword [eax + 0x100]
movups xmmword [edx + 0xc920], xmm0
movups xmm0, xmmword [eax + 0x110]
movups xmmword [edx + 0xc930], xmm0
movups xmm0, xmmword [eax + 0x120]
movups xmmword [edx + 0xc940], xmm0
movups xmm0, xmmword [eax + 0x130]
mov eax, dword [edx + 0x30]
movups xmmword [edx + 0xc950], xmm0
add edx, 0x2a738
lea eax, [eax + eax*2]
lea ecx, [eax*2 + 0x4a3830]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
nop word [eax + eax]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
add eax, ecx
lea edx, [esi + eax*2]
mov esi, dword [ebp - 4]
lea eax, [esi + edi]
lea ecx, [ebx + eax*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 0x12138]
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x12138], eax
jmp 0x492daa