Function at 0x5a8ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
and ecx, 0xff
cmp ecx, 2
je 0x5a8ae6
mov eax, 0x80004005
jmp 0x5a8d75
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
shl edx, 4
push edx
call fcn.0062fffc
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x5a8b25
push fcn.004b5b60
mov eax, dword [ebp - 0x34]
push eax
push 0x10
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00496d00
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
jmp 0x5a8b2c
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5a8b42
mov eax, 0x8007000e
jmp 0x5a8d75
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x68]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
shl ecx, 4
push ecx
call fcn.0062fffc
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x5a8b82
push fcn.004b5b60
mov edx, dword [ebp - 0x3c]
push edx
push 0x10
mov eax, dword [ebp - 0x40]
push eax
call fcn.00496d00
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x58], ecx
jmp 0x5a8b89
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x5a8bb1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0062fced
add esp, 4
mov eax, 0x8007000e
jmp 0x5a8d75
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
cmp dword [eax + 0x10], 0
je 0x5a8be1
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
cmp dword [edx + 0x10], 0
je 0x5a8be1
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
shl eax, 0x10
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 4]
xor edx, edx
div dword [ecx + 0x68]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
shl eax, 0x10
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 4]
xor edx, edx
div dword [ecx + 0x6c]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
shl eax, 0x10
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 4]
xor edx, edx
div dword [ecx + 0x70]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x70]
jae 0x5a8d4f
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0xffffffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x6c]
jae 0x5a8d38
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x24]
shr edx, 0x10
test edx, edx
je 0x5a8cb7
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
shr ecx, 0x10
push ecx
mov edx, dword [ebp - 0x24]
shr edx, 0x10
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x68]
jae 0x5a8d04
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
shl ecx, 4
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
shl edx, 4
add edx, dword [ebp - 4]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x5a8cb7
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
mov edx, dword [edx]
call dword [edx + 8]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x5a8c61
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x5a8c3a
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.0062fced
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0062fced
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret