Function at 0x52a005
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x529fb4.0
jmp dword [ecx*4 + 0x529f4f]
movzx eax, byte [eax + 0x460]
sub al, 8
je 0x529f7f
sub al, 8
je 0x529f8e
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529958
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5299d8
jmp case.0x529fb4.0
movzx eax, byte [eax + 0x460]
cmp eax, 0x10
ja case.0x529fb4.0
movzx eax, byte [eax + 0x529fbb]
jmp dword [eax*4 + 0x529fcc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529ab0
jmp case.0x529fb4.0
cmp dl, 3
jne 0x529ff9
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529b60
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529be4
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529c6c
jmp case.0x529fb4.0
movzx eax, byte [eax + 0x460]
sub al, 8
je 0x52a022
sub al, 8
je 0x52a02e
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529cc0
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529d60
jmp case.0x529fb4.0
movzx eax, byte [eax + 0x460]
sub al, 8
je 0x52a04b
sub al, 8
je 0x52a057
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529e50
jmp case.0x529fb4.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x529eac
mov byte [ebp - 5], 0
mov dword [ebp - 0x24], 0x5c0eb8
mov dword [ebp - 0x28], 0x5c0ef0
mov dword [ebp - 0x2c], 0x5c0e9c
mov esi, 0x5c0ed4
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebx + 0x18]
pop edx
sub eax, edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx]
add eax, ecx
dec eax
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebx + 0x14]
movzx ecx, byte [eax + 0x460]
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
mov eax, edi
call fcn.0052811c
mov dword [ebx + 0x20], eax
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
xor ecx, ecx
mov edx, dword [ebx + 0x20]
call fcn.00403b7c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
sub ecx, dword [ebp - 0xc]
imul edx, ecx
mov ecx, edx
add ecx, dword [eax + 0x450]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x454]
mov edi, dword [ebx + 0x18]
imul edi, dword [ebp - 0xc]
add ecx, edi
mov dword [ebp - 0x10], ecx
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x18], edx
cmp dword [ebx + 0x20], 0
jbe 0x52a1a2
jmp 0x52a196
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0052975c
test eax, eax
je 0x52a1a2
mov eax, ebx
call fcn.0052a70c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea ecx, [eax + 1]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [esi]
add dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
imul dword [esi]
sub dword [ebp - 0x14], eax
mov eax, dword [esi]
imul dword [ebx + 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
imul dword [esi]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 0x1c]
jl 0x52a119
inc byte [ebp - 5]
add esi, 4
add dword [ebp - 0x2c], 4
add dword [ebp - 0x28], 4
add dword [ebp - 0x24], 4
cmp byte [ebp - 5], 7
jne 0x52a07f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8