Function at 0x460a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
sub ebx, eax
shl eax, 8
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xec]
mov al, byte [0x634a51]
shl ecx, 8
test al, al
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x18]
je 0x460a6e
mov eax, dword [esi + 0x38]
mov edx, ecx
push edx
add eax, 0x20
call fcn.00456b90
add esp, 4
jmp 0x460a83
mov edx, dword [esi + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
add edx, 0x20
push edx
call fcn.0043c700
add esp, 0xc
mov eax, dword [esi + 0x38]
mov edi, dword [eax + 0x90]
test edi, edi
je 0x460cc2
fild dword [esp + 0x18]
movsx ecx, word [eax + 0x96]
mov dword [esp + 0x10], ecx
fmul qword [0x5db080]
fstp qword [esp + 0x48]
fild dword [esp + 0x1c]
fmul qword [0x5db080]
fild dword [eax + 0x20]
fmul qword [0x5db090]
fild dword [eax + 0x24]
fmul qword [0x5db090]
fstp qword [esp + 0x28]
fild dword [esp + 0x10]
fcom qword [0x5db078]
fnstsw ax
test ah, 5
jp 0x460ae8
fstp st(0)
fld qword [0x5db078]
jmp 0x460afd
fcom qword [0x5db070]
fnstsw ax
test ah, 0x41
jne 0x460afd
fstp st(0)
fld qword [0x5db070]
fmul qword [0x5d79d8]
sub esp, 8
fld st(0)
fmul st(1)
fsubr qword [0x5d76c8]
fdivr qword [0x5d76c8]
fld qword [esp + 0x50]
fsub st(2)
fld st(0)
fmul st(2)
fmul st(3)
fst qword [esp + 0x38]
fld st(2)
fmul st(4)
fmul st(5)
fst qword [esp + 0x50]
fld st(0)
fmul st(1)
fadd st(0), st(0)
fstp qword [esp + 0x18]
fstp st(0)
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
fld st(5)
fmul st(6)
faddp st(1)
fmul st(3)
fadd st(0), st(0)
fstp qword [esp + 0x40]
fld st(1)
fmul st(2)
fld st(6)
fmul st(7)
faddp st(1)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fstp qword [esp + 0x28]
fstp st(0)
fmul st(3)
fld qword [esp + 0x30]
fmul st(5)
faddp st(1)
fmul st(1)
fadd st(0), st(0)
fld qword [esp + 0x40]
fmul qword [0x5d76d0]
faddp st(1)
fld qword [esp + 0x50]
fmul qword [esp + 0x38]
fadd st(0), st(0)
fld qword [esp + 0x18]
fmul qword [0x5d76d0]
faddp st(1)
faddp st(1)
fstp qword [esp + 0x48]
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [esp + 0x40]
fadd qword [esp + 0x18]
fstp qword [esp + 0x40]
fld qword [esp + 0x28]
fstp qword [esp]
call fcn.004eb350
add esp, 8
fstp qword [esp + 0x28]
test ebx, ebx
je 0x460cc2
mov esi, dword [ebp + 0x14]
test bl, 0x10
fld qword [esp + 0x20]
jne 0x460bff
fdiv qword [esp + 0x28]
fadd qword [esp + 0x28]
fmul qword [0x5d76d0]
fld qword [esp + 0x20]
fdiv st(1)
fadd st(1)
fmul qword [0x5d76d0]
fstp qword [esp + 0x28]
fstp st(0)
jmp 0x460c11
sub esp, 8
fstp qword [esp]
call fcn.004eb350
fstp qword [esp + 0x30]
add esp, 8
fld qword [esp + 0x28]
fadd qword [esp + 0x30]
fmul qword [0x5d7838]
fstp qword [esp + 0x50]
fld qword [esp + 0x50]
fistp dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x38]
movzx ecx, byte [ecx + 0x94]
mov eax, dword [esp + 0x10]
and ecx, 0xc
cmp ecx, 4
je 0x460c5f
cmp ecx, 8
je 0x460c69
cmp eax, 0x100
jle 0x460c57
mov eax, 0x100
jmp 0x460c6e
test eax, eax
jge 0x460c6e
xor eax, eax
jmp 0x460c6e
test ah, 1
je 0x460c69
xor eax, 0xff
and eax, 0xff
movzx dx, byte [edi + eax*4 + 3]
fld qword [esp + 0x48]
fadd qword [esp + 0x30]
mov word [esi + 6], dx
movzx cx, byte [edi + eax*4 + 2]
fstp qword [esp + 0x30]
fld qword [esp + 0x40]
mov word [esi + 4], cx
movzx dx, byte [edi + eax*4 + 1]
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
mov word [esi + 2], dx
movzx ax, byte [edi + eax*4]
fld qword [esp + 0x40]
fadd qword [esp + 0x38]
mov word [esi], ax
add esi, 8
fstp qword [esp + 0x40]
dec ebx
jne 0x460bd2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret