Function at 0x56a929
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.0x56a8d8.0
jmp dword [ecx*4 + 0x56a873]
movzx eax, byte [eax + 0x460]
sub al, 8
je 0x56a8a3
sub al, 8
je 0x56a8b2
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a27c
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a2fc
jmp case.0x56a8d8.0
movzx eax, byte [eax + 0x460]
cmp eax, 0x10
ja case.0x56a8d8.0
movzx eax, byte [eax + 0x56a8df]
jmp dword [eax*4 + 0x56a8f0]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a3d4
jmp case.0x56a8d8.0
cmp dl, 3
jne 0x56a91d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a484
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a508
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a590
jmp case.0x56a8d8.0
movzx eax, byte [eax + 0x460]
sub al, 8
je 0x56a946
sub al, 8
je 0x56a952
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a5e4
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a684
jmp case.0x56a8d8.0
movzx eax, byte [eax + 0x460]
sub al, 8
je 0x56a96f
sub al, 8
je 0x56a97b
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a774
jmp case.0x56a8d8.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x56a7d0
mov byte [ebp - 5], 0
mov dword [ebp - 0x24], 0x5bc308
mov dword [ebp - 0x28], 0x5bc340
mov dword [ebp - 0x2c], 0x5bc2ec
mov esi, 0x5bc324
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.00568124
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.00404c94
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 0x56aac6
jmp 0x56aaba
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.00569ff0
test eax, eax
je 0x56aac6
mov eax, ebx
call fcn.0056b030
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 0x56aa3d
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 0x56a9a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8