Function at 0x5e8c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5e8fc0
sub esp, 0x54
movzx eax, byte [esp + 0x58]
lea edx, [eax - 1]
cmp dl, 7
ja 0x5e8fa7
mov edx, dword [esp + 0x60]
test edx, edx
je 0x5e8d95
mov ebx, dword [esp + 0x5c]
movzx ebp, byte [ebx]
cmp al, 8
jae 0x5e8ca8
movzx ecx, al
cmp ecx, 0x20
sbb esi, esi
mov edi, 1
shl edi, cl
and edi, esi
add edi, 0xffffffff
and ebp, edi
mov dword [esp + 0x34], ebp
movzx ecx, al
cmp ecx, 0x20
sbb eax, eax
lea esi, [ecx - 0x20]
mov dword [esp + 0x30], esi
cmp esi, 0x20
sbb edi, edi
xchg esi, ebx
neg ebx
xchg esi, ebx
cmp esi, 0x20
sbb ebx, ebx
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x30]
mov ebp, 1
shl ebp, cl
and ebp, edi
and edx, eax
mov ecx, esi
mov eax, 1
shr eax, cl
and eax, ebx
or ebp, eax
add edx, 0xffffffff
adc ebp, 0xffffffff
test ebp, ebp
seta al
sete bl
mov ebp, dword [esp + 0x34]
cmp edx, ebp
seta dl
and ebx, edx
or ebx, eax
test bl, bl
jne 0x5e8d4c
mov eax, dword [esp + 0x64]
lea edx, [eax - 1]
mov ebx, dword [esp + 0x60]
lea esi, [ebx - 1]
mov edi, edx
neg edx
sar edx, 0x1f
and edx, 1
mov ecx, eax
mov eax, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
jmp 0x5e8e14
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], ebp
mov eax, dword [esp + 0x64]
dec eax
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov edx, dword [esp + 0x5c]
add eax, edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x54
ret
mov eax, dword [0xa1d9a0]
mov ecx, dword [0xa1d9a4]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x54
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x64]
mov edi, esi
mov edx, dword [esp + 0x38]
mov esi, ebp
mov ebp, dword [esp + 0x40]
test esi, esi
je 0x5e8f70
mov dword [esp + 0x30], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov ebx, dword [esp + 0x14]
cmp ebx, 1
sbb eax, eax
xor eax, 0xffffffff
mov ebx, dword [esp + 0x10]
or eax, ebx
lea ebx, [eax - 0x20]
mov dword [esp + 0x24], ebx
cmp ebx, 0x20
sbb esi, esi
neg ebx
cmp ebx, 0x20
sbb edi, edi
cmp eax, 0x20
sbb ebp, ebp
movzx edx, byte [edx]
mov byte [esp + 0xf], dl
and edx, 0x7f
mov dword [esp + 0x20], edx
mov ecx, ebx
mov ebx, edx
shr edx, cl
mov ecx, dword [esp + 0x24]
shl ebx, cl
mov ecx, eax
mov eax, dword [esp + 0x20]
shl eax, cl
and edx, edi
and ebx, esi
and eax, ebp
or ebx, edx
mov edx, dword [esp + 0x30]
add eax, edx
mov edx, dword [esp + 0x34]
adc ebx, edx
mov edx, dword [esp + 0x28]
dec edx
mov ebp, dword [esp + 0x2c]
dec ebp
mov esi, edx
neg edx
sar edx, 0x1f
and edx, 1
mov edi, dword [esp + 0x50]
add edx, edi
movzx edi, byte [esp + 0xf]
xchg edi, eax
test al, 0x80
xchg edi, eax
je 0x5e8f45
mov dword [esp + 0x50], edx
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x10]
add edi, 7
mov ecx, eax
mov eax, dword [esp + 0x14]
adc eax, 0
mov dword [esp + 0x18], eax
test eax, eax
seta al
sete dl
cmp edi, 0x3f
setae bl
and ebx, edx
or ebx, eax
test bl, bl
je 0x5e8dd4
lea eax, [0x690d40]
mov dword [esp], eax
lea eax, [0xa1d9a8]
mov dword [esp + 4], eax
call fcn.00408750
mov eax, dword [esp + 8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x78], ecx
lea ecx, [0x895ad0]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x54
ret
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x54
ret
mov edx, dword [0xa1d9a0]
mov ebp, dword [0xa1d9a4]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ebp
add esp, 0x54
ret
lea eax, [0x67e720]
mov dword [esp], eax
lea eax, [0x8950a0]
mov dword [esp + 4], eax
call fcn.00433690
nop
call fcn.0045e260
jmp fcn.005e8c50