Function at 0x575360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x69e298]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [ecx + 0xd0b8]
mov edx, dword [ecx + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xcc]
mov dword [esp + 0x24], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [esi + 4]
shl eax, 8
add eax, ebx
mov dword [esp + 0x2c], eax
lea eax, [esi + 7]
shl eax, 8
add eax, ebx
mov dword [esp + 0x30], eax
lea eax, [esi + esi*2]
add eax, eax
mov dword [esp + 0x38], edx
mov edx, dword [ebx + esi*4 + 0xa00]
mov edi, dword [ebx + eax*4 + 0xa30]
mov eax, dword [ebx + eax*4 + 0xa34]
mov di, word [edi]
mov ax, word [eax]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + esi*4 + 0xa18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x18], edx
mov word [esp + 0x20], di
mov word [esp + 0x22], ax
mov dword [esp + 0x14], 0
test edx, edx
jle 0x575596
lea ecx, [esi + esi*2]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
xor eax, eax
movzx edx, ax
mov dword [esp + 0x1c], ecx
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x20
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + ecx*4]
mov edx, eax
xor ecx, ecx
and edx, 0x700
cmp edx, 0x100
setne cl
shr eax, 2
and eax, 0x3f
add eax, dword [esp + 0x3c]
lea eax, [ecx + eax*2 + 0x28c]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + eax*4]
mov dword [esp + 0x44], ecx
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp dword [ecx + eax*4], 0
mov dword [esp + 0x48], eax
jne 0x575543
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + eax*4]
mov ecx, dword [esp + 0x10]
movzx esi, byte [edi + ecx]
mov edx, dword [esi*4 + 0x5eb368]
inc edi
cmp esi, 0xf
jae 0x5754cb
xor ecx, ecx
cmp esi, 0xc
setl cl
xor ebx, ebx
neg ecx
and ecx, 0x15
cmp esi, 2
setl bl
neg ebx
and ebx, 0xfffffff3
add ecx, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, byte [edi + ebx]
shl ebx, cl
add edx, ebx
mov ebx, dword [esp + 0x4c]
inc edi
mov ecx, edx
sar ecx, 8
and ecx, 0xfff
test esi, esi
jne 0x5754f1
mov esi, dword [esp + 0x10]
movzx esi, byte [edi + esi]
shl esi, 8
add ecx, esi
inc edi
test ecx, ecx
jne 0x5754f1
mov ecx, 0x7fffffff
mov esi, dword [esp + 0x30]
mov dword [esi + eax*4], ecx
mov esi, dword [esp + 0x2c]
mov dword [esi + eax*4], edi
movzx esi, dl
add eax, esi
mov esi, edx
and esi, 0x100000
neg esi
sar edx, 0x15
sar esi, 0x15
xor esi, edx
mov edx, dword [esp + 0x44]
imul si, word [edx + eax*2]
mov edx, dword [esp + 0x38]
movzx edx, byte [eax + edx]
mov word [esp + edx*2 + 0x50], si
mov esi, dword [ebp + 0xc]
xor edx, edx
test ecx, ecx
sete dl
add eax, edx
cmp eax, 0x40
jl 0x575470
jmp 0x575546
dec dword [ecx + eax*4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dx, word [ecx + eax*4 + 2]
mov ecx, dword [esp + 0x40]
mov word [esp + 0x50], dx
movzx edx, word [esp + ecx*2 + 0x20]
mov ecx, dword [esp + 0x48]
push edx
push ecx
lea edx, [esp + 0x58]
push edx
push esi
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.00578840
mov eax, dword [esp + 0x2c]
inc eax
add esp, 0x18
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x57540e
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + esi*4 + 0xa24]
add edx, edx
add edx, edx
add dword [ebx + esi*4 + 0xa00], edx
mov edx, eax
push esi
neg edx
push 1
add edx, edx
add edx, edx
add dword [ebx + esi*4 + 0xa0c], edx
mov ebx, dword [ebx + esi*4 + 0xa0c]
push 2
push eax
push ebx
push ecx
call fcn.005789a0
mov ecx, dword [esp + 0xf4]
add esp, 0x18
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00589f78
mov esp, ebp
pop ebp
ret