Function at 0x457a50
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]
push esi
mov esi, dword [ebp + 8]
sub ebx, eax
shl eax, 8
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xec]
shl ecx, 8
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x38]
push edx
mov eax, edx
push eax
add ecx, 0x20
push ecx
call fcn.00436d80
mov edx, dword [esi + 0x38]
mov edi, dword [edx + 0x90]
add esp, 0xc
test edi, edi
je 0x457cd5
fild dword [esp + 0x18]
mov eax, edx
fmul qword [0x53dcd0]
fstp qword [esp + 0x40]
fild dword [esp + 0x1c]
fmul qword [0x53dcd0]
fild dword [eax + 0x20]
fmul qword [0x53dcd8]
fild dword [eax + 0x24]
movsx eax, word [eax + 0x96]
mov dword [esp + 0x10], eax
fmul qword [0x53dcd8]
fstp qword [esp + 0x38]
fild dword [esp + 0x10]
fmul qword [0x53a938]
fcom qword [0x53d4a0]
fnstsw ax
test ah, 5
jp 0x457b02
fstp st(0)
fld qword [0x53d4a0]
jmp 0x457b17
fcom qword [0x53d498]
fnstsw ax
test ah, 0x41
jne 0x457b17
fstp st(0)
fld qword [0x53d498]
fld st(0)
sub esp, 8
fmul st(1)
fsubr qword [0x53a608]
fdivr qword [0x53a608]
fst qword [esp + 0x18]
fld qword [esp + 0x48]
fsub st(2)
fst qword [esp + 0x38]
fmul st(1)
fmul st(2)
fstp qword [esp + 0x28]
fmulp st(1)
fmul st(1)
fst qword [esp + 0x48]
fld st(0)
fmulp st(1)
fadd st(0), st(0)
fld qword [esp + 0x40]
fmul qword [esp + 0x40]
fld st(2)
fmul st(3)
faddp st(1)
fmul qword [esp + 0x18]
fadd st(0), st(0)
fld qword [esp + 0x38]
fmul qword [esp + 0x38]
fld st(4)
fmul st(5)
faddp st(1)
fmul qword [esp + 0x18]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
faddp st(1)
fstp qword [esp + 0x30]
fld qword [esp + 0x38]
fmul st(3)
fld qword [esp + 0x40]
fmul st(5)
faddp st(1)
fmul qword [esp + 0x18]
fadd st(0), st(0)
fld st(1)
fmul qword [0x53a610]
faddp st(1)
fld qword [esp + 0x48]
fmul qword [esp + 0x28]
fadd st(0), st(0)
fld st(3)
fmul qword [0x53a610]
faddp st(1)
faddp st(1)
fstp qword [esp + 0x40]
fadd st(1)
fstp qword [esp + 0x58]
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [esp + 0x30]
fstp qword [esp]
call fcn.004d1900
add esp, 8
fstp qword [esp + 0x30]
test ebx, ebx
je 0x457cd5
mov esi, dword [ebp + 0x14]
test bl, 0x10
fld qword [esp + 0x28]
jne 0x457c11
fdiv qword [esp + 0x30]
fadd qword [esp + 0x30]
fmul qword [0x53a610]
fld qword [esp + 0x28]
fdiv st(1)
fadd st(1)
fmul qword [0x53a610]
fstp qword [esp + 0x30]
fstp st(0)
jmp 0x457c23
sub esp, 8
fstp qword [esp]
call fcn.004d1900
fstp qword [esp + 0x38]
add esp, 8
fld qword [esp + 0x30]
fadd qword [esp + 0x20]
fmul qword [0x53a770]
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fistp dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx + 0x94]
and ecx, 0xc
cmp ecx, 4
je 0x457c72
cmp ecx, 8
je 0x457c7c
cmp eax, 0x100
jle 0x457c6a
mov eax, 0x100
jmp 0x457c81
test eax, eax
jge 0x457c81
xor eax, eax
jmp 0x457c81
test ah, 1
je 0x457c7c
xor eax, 0xff
and eax, 0xff
movzx cx, byte [edi + eax*4 + 3]
fld qword [esp + 0x40]
fadd qword [esp + 0x20]
mov word [esi + 6], cx
movzx dx, byte [edi + eax*4 + 2]
fstp qword [esp + 0x20]
fld qword [esp + 0x38]
mov word [esi + 4], dx
fadd qword [esp + 0x28]
movzx cx, byte [edi + eax*4 + 1]
fstp qword [esp + 0x28]
mov word [esi + 2], cx
movzx dx, byte [edi + eax*4]
fld qword [esp + 0x38]
fadd qword [esp + 0x50]
mov word [esi], dx
add esi, 8
fstp qword [esp + 0x38]
dec ebx
jne 0x457be4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret