Function at 0x52e5b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x34]
sub ecx, dword [eax + 0x6c]
mov edx, dword [ebp + 8]
sub ecx, dword [edx + 0x64]
mov dword [ebp - 0xc], ecx
xor eax, eax
je 0x52e607
cmp dword [ebp - 0xc], 0
jne 0x52e5f8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x64], 0
jne 0x52e5f8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6c], 0
jne 0x52e5f8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x52e607
cmp dword [ebp - 0xc], 0xffffffff
jne 0x52e607
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax - 0x106]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x64], edx
jb 0x52e725
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
add eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
push edx
call fcn.0050da80
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x68], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x54], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 8]
lea edx, [eax + ecx*2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
sub eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x52e6aa
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x52e6b1
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 4]
mov ax, word [ebp - 0x18]
mov word [edx], ax
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
jne 0x52e685
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov edx, dword [ebp - 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
jb 0x52e700
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x52e707
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov cx, word [ebp - 0x1c]
mov word [eax], cx
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
jne 0x52e6db
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
jne 0x52e735
jmp 0x52e7d3
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x64]
mov ecx, dword [ebp + 8]
add edx, dword [ecx + 0x6c]
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0052e4e0
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6c], 3
jb 0x52e7b8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x64]
movzx eax, byte [eax + edx]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x40]
mov ecx, dword [eax + 0x50]
shl edx, cl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
movzx ecx, byte [eax + ecx + 1]
xor edx, ecx
mov eax, dword [ebp + 8]
and edx, dword [eax + 0x4c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], edx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6c], 0x106
jae 0x52e7d3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jne 0x52e5bf
mov esp, ebp
pop ebp
ret