Function at 0x4609d0
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 [0x6348b1]
shl ecx, 8
test al, al
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x18]
je 0x460a1e
mov eax, dword [esi + 0x38]
mov edx, ecx
push edx
add eax, 0x20
call fcn.00456b40
add esp, 4
jmp 0x460a33
mov edx, dword [esi + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
add edx, 0x20
push edx
call fcn.0043c680
add esp, 0xc
mov eax, dword [esi + 0x38]
mov edi, dword [eax + 0x90]
test edi, edi
je 0x460c72
fild dword [esp + 0x18]
movsx ecx, word [eax + 0x96]
mov dword [esp + 0x10], ecx
fmul qword [0x5db0c8]
fstp qword [esp + 0x48]
fild dword [esp + 0x1c]
fmul qword [0x5db0c8]
fild dword [eax + 0x20]
fmul qword [0x5db0d8]
fild dword [eax + 0x24]
fmul qword [0x5db0d8]
fstp qword [esp + 0x28]
fild dword [esp + 0x10]
fcom qword [0x5db0c0]
fnstsw ax
test ah, 5
jp 0x460a98
fstp st(0)
fld qword [0x5db0c0]
jmp 0x460aad
fcom qword [0x5db0b8]
fnstsw ax
test ah, 0x41
jne 0x460aad
fstp st(0)
fld qword [0x5db0b8]
fmul qword [0x5d79e0]
sub esp, 8
fld st(0)
fmul st(1)
fsubr qword [0x5d76d0]
fdivr qword [0x5d76d0]
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 [0x5d76d8]
faddp st(1)
fld qword [esp + 0x50]
fmul qword [esp + 0x38]
fadd st(0), st(0)
fld qword [esp + 0x18]
fmul qword [0x5d76d8]
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.004ebdb0
add esp, 8
fstp qword [esp + 0x28]
test ebx, ebx
je 0x460c72
mov esi, dword [ebp + 0x14]
test bl, 0x10
fld qword [esp + 0x20]
jne 0x460baf
fdiv qword [esp + 0x28]
fadd qword [esp + 0x28]
fmul qword [0x5d76d8]
fld qword [esp + 0x20]
fdiv st(1)
fadd st(1)
fmul qword [0x5d76d8]
fstp qword [esp + 0x28]
fstp st(0)
jmp 0x460bc1
sub esp, 8
fstp qword [esp]
call fcn.004ebdb0
fstp qword [esp + 0x30]
add esp, 8
fld qword [esp + 0x28]
fadd qword [esp + 0x30]
fmul qword [0x5d7840]
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 0x460c0f
cmp ecx, 8
je 0x460c19
cmp eax, 0x100
jle 0x460c07
mov eax, 0x100
jmp 0x460c1e
test eax, eax
jge 0x460c1e
xor eax, eax
jmp 0x460c1e
test ah, 1
je 0x460c19
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 0x460b82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret