Function at 0x52cf60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x220]
mov edx, dword [esi + 0x21c]
lea ecx, [esi + 0x218]
push edi
push eax
push edx
call fcn.0055bc50
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x14]
mov eax, 0x7d00
xor ecx, ecx
test edi, edi
je 0x52ce4f
mov edx, dword [ebx + 0x18]
sub edx, edi
sar edx, 2
cmp ecx, edx
jae 0x52ce4f
mov edx, dword [ebx + 0x14]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 8]
mov dword [ebp - 0x10], eax
cmp edx, eax
mov dword [ebp + 8], edx
lea eax, [ebp + 8]
jl 0x52ce4a
lea eax, [ebp - 0x10]
mov eax, dword [eax]
inc ecx
jmp 0x52ce21
mov ecx, eax
imul eax, dword [esi + 0x1e4]
imul ecx, dword [esi + 0x1e8]
mov dword [ebp - 0x10], eax
cmp ecx, eax
mov dword [ebp + 8], ecx
lea eax, [ebp + 8]
jl 0x52ce6f
lea eax, [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [esi + 0x1f0]
sub eax, 0
je 0x52ce9d
dec eax
je 0x52ce8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
jmp 0x52cea6
mov eax, 0x2aaaaaab
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
jmp 0x52cead
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
xor ecx, ecx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x52cf49
mov edx, dword [ebx + 0x18]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x52cf49
mov edi, dword [eax + ecx*4]
push 0x3ec
call fcn.00604401
add esp, 4
test eax, eax
je 0x52ceea
push edi
mov ecx, eax
call fcn.005254f0
jmp 0x52ceec
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0x24]
add ecx, dword [edi + 0x20]
test ecx, ecx
jle 0x52cf14
mov edi, dword [edi + 0x1c]
test edi, edi
jl 0x52cf14
mov ecx, dword [esi + edi*4 + 0x10]
test ecx, ecx
jl 0x52cf14
mov ecx, dword [esi + ecx*4 + 0x50]
cmp ecx, 0xffffffff
je 0x52cf14
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, esi
call fcn.0052caa0
mov edx, dword [esi + 0x220]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x218]
push 1
push edx
call fcn.004f9e20
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov ecx, eax
jmp 0x52ceb5
mov dword [ebp - 0x10], 2
xor edi, edi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x52cf7d
mov ecx, dword [ebx + 0x18]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x52cf7d
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x21c]
mov ecx, dword [eax + edi*4]
push edx
push ecx
mov ecx, esi
call fcn.0052caa0
inc edi
jmp 0x52cf52
dec dword [ebp - 0x10]
jne 0x52cf50
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
mov ecx, esi
call fcn.0052c330
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
mov ecx, edi
sub ecx, eax
sub edx, ebx
mov dword [ebp + 8], ecx
cmp edx, ecx
mov dword [ebp - 0x10], edx
lea ecx, [ebp + 8]
jl 0x52cfbb
lea ecx, [ebp - 0x10]
mov ebx, dword [ecx]
mov ecx, dword [esi + 0x1e8]
mov edx, dword [esi + 0x1e4]
mov dword [ebp + 8], ecx
cmp edx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
lea ecx, [ebp + 8]
jl 0x52cfdc
lea ecx, [ebp - 0xc]
mov ecx, dword [ecx]
sub eax, ebx
add eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 8], ecx
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x52d117
mov edx, dword [esi + 0x220]
sub edx, eax
sar edx, 2
cmp edi, edx
jae 0x52d117
mov ecx, dword [eax + edi*4]
add ecx, 0x10
mov edx, ecx
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
sub eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
cdq
idiv ebx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub eax, edx
imul eax, dword [ebp - 8]
cdq
idiv ebx
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x21c]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
imul eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x21c]
mov ecx, dword [eax + edi*4]
call fcn.005255c0
mov ecx, dword [esi + 0x21c]
mov ebx, dword [ecx + edi*4]
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
mov dl, byte [esi + 0x70]
je 0x52d0ad
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x10]
inc edi
jmp 0x52cfff
mov eax, dword [ebx + 0xc]
shl eax, 4
mov dword [ebp + 8], 0
add eax, 0x667c48
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x52d0cf
test dl, dl
jne 0x52d0cf
cmp ecx, 8
je 0x52d0de
mov ecx, dword [ebp + 8]
inc ecx
add eax, 4
cmp ecx, 4
mov dword [ebp + 8], ecx
jl 0x52d0bf
mov eax, dword [ebp + 8]
test eax, eax
jne 0x52d0f5
mov dword [ebx + 8], 0xffffffff
mov ebx, dword [ebp - 0x10]
inc edi
jmp 0x52cfff
call fcn.006053cc
cdq
idiv dword [ebp + 8]
mov eax, dword [ebx + 0xc]
inc edi
lea ecx, [edx + eax*4]
mov edx, dword [ecx*4 + 0x667c48]
mov dword [ebx + 8], edx
mov ebx, dword [ebp - 0x10]
jmp 0x52cfff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4