Function at 0x575990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
mov eax, dword [eax + 0x2c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jmp 0x575a7a
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x575b49
mov edx, dword [edi + 0x38]
mov ebx, eax
add esi, edx
mov edx, dword [edi + 0x74]
add esi, edx
mov dword [ebp - 0x1c], edx
cmp eax, dword [ebp - 0x10]
jbe 0x5759d7
mov ebx, dword [ebp - 0x10]
xor edx, edx
test ebx, ebx
je 0x575a27
mov edx, dword [ebp - 0x18]
sub eax, ebx
mov dword [edx + 4], eax
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
je 0x575b51
cmp eax, 2
je 0x575b6d
push eax
mov eax, dword [ebp - 0x18]
push ebx
mov eax, dword [eax]
push eax
push esi
call fcn.0058e948
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov esi, dword [edx + 8]
add eax, ebx
add esi, ebx
mov dword [edx], eax
mov eax, dword [edi + 0x74]
mov dword [edx + 8], esi
add esp, 0x10
mov edx, ebx
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
add esi, edx
mov dword [ebp - 0x1c], esi
mov dword [edi + 0x74], esi
cmp esi, 2
jbe 0x575a5e
mov ebx, dword [edi + 0x6c]
mov edx, dword [edi + 0x38]
xor eax, eax
mov ecx, dword [edi + 0x58]
mov al, byte [ebx + edx]
mov dword [edi + 0x48], eax
mov dl, byte [edx + ebx + 1]
mov ebx, dword [edi + 0x54]
shl eax, cl
and edx, 0xff
xor eax, edx
and eax, ebx
mov dword [edi + 0x48], eax
cmp esi, 0x105
ja 0x575b49
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x575b49
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
mov esi, dword [edi + 0x6c]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
sub ecx, edx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, esi
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx - 0x106]
cmp esi, eax
jb 0x5759b0
mov edx, dword [edi + 0x38]
mov eax, dword [ebp - 0x14]
add eax, edx
mov ecx, dword [ebp - 0x14]
push ebx
push ecx
push eax
push edx
call fcn.0058e948
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x70]
sub esi, eax
mov ebx, dword [edi + 0x5c]
mov dword [edi + 0x70], esi
mov esi, dword [edi + 0x6c]
sub esi, eax
sub ebx, eax
mov ecx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
mov dword [edi + 0x6c], esi
mov dword [edi + 0x5c], ebx
lea edx, [eax + ecx*2]
add esp, 0x10
sub edx, 2
xor ebx, ebx
mov ax, word [edx]
and eax, 0xffff
cmp eax, dword [ebp - 0x14]
jb 0x575afb
mov ebx, eax
sub bx, word [ebp - 0x14]
dec ecx
mov word [edx], bx
jne 0x575ae3
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x40]
lea edx, [eax + ecx*2]
lea esi, [esi]
sub edx, 2
xor ebx, ebx
mov ax, word [edx]
and eax, 0xffff
cmp eax, dword [ebp - 0x14]
jb 0x575b28
mov ebx, eax
sub bx, word [ebp - 0x14]
dec ecx
mov word [edx], bx
jne 0x575b10
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
add ecx, edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x5759c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push ebx
mov eax, dword [edx]
push eax
mov eax, dword [edx + 0x30]
push eax
call fcn.0057acc0
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov dword [edx + 0x30], eax
jmp 0x5759fd
mov eax, dword [ebp - 0x18]
push ecx
push ebx
mov edx, dword [eax]
push edx
mov eax, dword [eax + 0x30]
push eax
call fcn.00576690
jmp 0x575b5f