Function at 0x465e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov al, byte [esi + 2]
mov edi, dword [esi + 0x4c]
test al, al
je 0x465dcc
mov dl, byte [esi]
add dl, al
mov cl, dl
mov byte [esi], dl
cmp cl, 0x40
jbe 0x465dcc
test al, al
setl dl
dec dl
and edx, 0x40
mov byte [esi], dl
mov al, byte [esi + 1]
test al, al
je 0x465dec
mov dl, byte [esi]
add dl, al
mov cl, dl
mov byte [esi], dl
cmp cl, 0x40
jbe 0x465dec
test al, al
setl al
dec al
and eax, 0x40
mov byte [esi], al
mov al, byte [esi + 7]
test al, al
je 0x465e19
mov dl, byte [esi + 6]
add dl, al
mov cl, dl
mov byte [esi + 6], dl
cmp cl, 0x40
jbe 0x465e0f
test al, al
setl cl
dec cl
and ecx, 0x40
mov byte [esi + 6], cl
test edi, edi
je 0x465e19
mov dl, byte [esi + 6]
mov byte [edi + 0x17], dl
mov al, byte [esi + 0x21]
test al, al
jns 0x465e4c
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x465e4c
cmp al, 0x80
jne 0x465e35
mov al, byte [esi + 0x3a]
shr al, 4
or al, 0xc0
jmp 0x465e49
cmp al, 0xc0
jne 0x465e47
mov cl, byte [esi + 0x3a]
and cl, 0xf
or cl, 0x80
mov byte [esi + 0x21], cl
jmp 0x465e4c
dec al
mov byte [esi + 0x21], al
mov eax, dword [esi + 0x14]
mov edx, eax
and eax, 0xff
sar edx, 8
and edx, 0xfff
shl eax, 4
or edx, eax
lea eax, [esi - 4]
push eax
mov dword [esi + 0x14], edx
call fcn.0046395a
add esp, 4
test edi, edi
je 0x465fd0
mov ecx, dword [esi + 0x24]
mov edx, dword [edi + 0x30]
xor byte [ebp - 0x1774eefc], cl
mov dword [edi + 0x30], eax
mov eax, dword [ebx]
mov dword [esp + 0x20], ebp
test byte [eax + 0x10], 8
je 0x465ef3
mov edx, dword [esi + 0x28]
test edx, edx
je 0x465fd0
mov cl, byte [esi + 0x2c]
cmp cl, 0x78
jae 0x465fd0
xor eax, eax
and ecx, 0xff
mov al, byte [edi + 0x1c]
sub ecx, 0x3c
sub eax, 0x3c
shl eax, 8
add eax, ebp
shl ecx, 8
cmp eax, ecx
jle 0x465ed1
sub eax, edx
cmp eax, ecx
jge 0x465edf
jmp 0x465ed9
jge 0x465edf
add eax, edx
cmp eax, ecx
jle 0x465edf
mov eax, ecx
mov byte [esi + 0x2c], 0xff
xor ecx, ecx
mov ch, byte [edi + 0x1c]
sub eax, ecx
add eax, 0x3c00
mov dword [edi + 0x30], eax
jmp 0x465fd0
add byte [eax], al
invalid
add byte [eax], al
add byte [ebx - 0x3f7ad7ba], cl
mov eax, dword [esi + 0x28]
test eax, eax
je 0x465fd0
mov bl, byte [esi + 0x2c]
cmp bl, 0x78
jae 0x465fcc
mov edx, dword [edi + 8]
xor eax, eax
mov al, byte [edi + 0x1c]
mov ecx, 0x3c
fild dword [edx + 0x10]
sub ecx, eax
mov dword [esp + 0x14], ecx
fmul dword [0x55099c]
fstp dword [esp + 0x10]
fld qword [0x550968]
fild dword [esp + 0x14]
call fcn.0044d7ca
fstp dword [esp + 0x14]
fld qword [0x550968]
and ebx, 0xff
mov edx, 0x3c
sub edx, ebx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
call fcn.0044d7ca
fild dword [esp + 0x20]
fmul dword [esp + 0x10]
fsubr dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
mov eax, dword [esi + 0x28]
jp 0x465f9d
sub ebp, eax
mov dword [esp + 0x20], ebp
mov dword [edi + 0x30], ebp
fild dword [esp + 0x20]
fmul dword [esp + 0x10]
fsubr dword [esp + 0x14]
fcompp
fnstsw ax
and eax, 0x4100
jne 0x465fcc
mov al, byte [esi + 0x2c]
mov byte [edi + 0x1c], al
jmp 0x465fc1
add ebp, eax
mov dword [esp + 0x20], ebp
mov dword [edi + 0x30], ebp
fild dword [esp + 0x20]
fmul dword [esp + 0x10]
fsubr dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x465fcc
mov cl, byte [esi + 0x2c]
mov byte [edi + 0x1c], cl
invalid
mov dword [edi + 0x30], 0
mov byte [esi + 0x2c], 0xff
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add esi, 0x54
dec eax
mov dword [esp + 0x18], eax
jne 0x465da9
pop edi
lea edx, [ebx + 0x5c]
mov esi, 0x40
pop ebp
mov ecx, dword [edx]
test ecx, ecx
je 0x466011
mov al, byte [ecx + 0x23]
mov bl, byte [ecx + 0x26]
shl al, 2
imul byte [ecx + 0x25]
add bl, al
mov al, byte [ecx + 0x27]
mov byte [ecx + 0x26], bl
mov bl, byte [ecx + 0x29]
shl al, 2
add bl, al
mov byte [ecx + 0x29], bl
add edx, 0x54
dec esi
jne 0x465fec
pop esi
pop ebx
add esp, 0x14
ret