Function at 0x45f800
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4bd910]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
mov dword [ebp - 0x318], ecx
je 0x45fc09
movss xmm2, dword [0x498528]
xor eax, eax
push esi
mov dword [ebp - 0x308], eax
push edi
sub eax, 0
je 0x45f875
dec eax
je 0x45f85a
dec eax
jne 0x45f890
movss xmm1, dword [ebp + 0x10]
lea edi, [ebp - 0x304]
movss dword [ebp - 0x310], xmm1
mov dword [ebp - 0x30c], edi
jmp 0x45f89e
movss xmm1, dword [ebp + 0xc]
lea edi, [ebp - 0x204]
movss dword [ebp - 0x310], xmm1
mov dword [ebp - 0x30c], edi
jmp 0x45f89e
movss xmm1, dword [ebp + 8]
lea edi, [ebp - 0x104]
movss dword [ebp - 0x310], xmm1
mov dword [ebp - 0x30c], edi
jmp 0x45f89e
movss xmm1, dword [ebp - 0x310]
mov edi, dword [ebp - 0x30c]
xorps xmm0, xmm0
xor esi, esi
comiss xmm0, xmm1
jbe 0x45f904
xorps xmm1, xmmword [0x49cde0]
add edi, 0xff
movss dword [ebp - 0x310], xmm1
lea ecx, [ecx]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
cvtss2sd xmm1, xmm1
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
call fcn.00474450
movss xmm2, dword [0x498528]
lea edi, [edi - 1]
movss xmm1, dword [ebp - 0x310]
inc esi
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm2
cvttss2si eax, xmm0
mov byte [edi + 1], al
cmp esi, 0x100
jl 0x45f8c0
jmp 0x45f942
movd xmm0, esi
cvtdq2ps xmm0, xmm0
cvtps2pd xmm1, xmm1
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
call fcn.00474450
movss xmm2, dword [0x498528]
movss xmm1, dword [ebp - 0x310]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm2
cvttss2si eax, xmm0
mov byte [esi + edi], al
inc esi
cmp esi, 0x100
jl 0x45f904
mov eax, dword [ebp - 0x308]
inc eax
mov dword [ebp - 0x308], eax
cmp eax, 3
jl 0x45f834
mov edi, dword [ebp - 0x318]
xor eax, eax
mov dword [ebp - 0x31c], eax
cmp dword [edi], eax
jle 0x45fc07
xor esi, esi
mov dword [ebp - 0x314], esi
push eax
mov ecx, edi
call fcn.0045c4a0
mov edi, dword [edi + 4]
add edi, esi
mov dword [ebp - 0x310], edi
cmp dword [edi + 0x1c], 0
je 0x45fa80
xor eax, eax
mov dword [ebp - 0x30c], eax
cmp dword [edi + 0x10], eax
jle 0x45fa80
mov edx, dword [edi + 0xc]
mov ecx, edx
imul ecx, eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x308], 0
lea esi, [eax + ecx*4]
test edx, edx
jle 0x45fa6a
mov edx, 0xff
lea esp, [esp]
movzx eax, byte [esi + 3]
mov ecx, edx
sub cx, ax
movzx eax, cx
test ax, ax
je 0x45fa51
cmp ax, dx
je 0x45fa51
mov ecx, eax
movzx eax, byte [esi]
imul eax, eax, 0xff
cdq
idiv ecx
mov edx, 0x100
movzx eax, ax
cmp ax, dx
jb 0x45fa06
mov eax, 0xff
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, eax, 0xff
cdq
idiv ecx
mov edx, 0x100
movzx eax, ax
cmp ax, dx
jb 0x45fa27
mov eax, 0xff
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, 0x100
movzx eax, ax
cmp ax, cx
jb 0x45fa49
mov eax, 0xff
mov byte [esi + 2], al
mov edx, 0xff
mov eax, dword [ebp - 0x308]
add esi, 4
inc eax
mov dword [ebp - 0x308], eax
cmp eax, dword [edi + 0xc]
jl 0x45f9d0
mov eax, dword [ebp - 0x30c]
inc eax
mov dword [ebp - 0x30c], eax
cmp eax, dword [edi + 0x10]
jl 0x45f9a4
xor eax, eax
mov dword [ebp - 0x308], eax
cmp dword [edi + 0x10], eax
jle 0x45faea
mov esi, dword [edi + 0xc]
mov ecx, esi
xor edx, edx
imul ecx, eax
mov eax, dword [edi + 0x24]
lea ecx, [eax + ecx*4]
test esi, esi
jle 0x45fad8
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
inc edx
movzx eax, byte [ebp + eax - 0x304]
mov byte [ecx - 4], al
movzx eax, byte [ecx - 3]
movzx eax, byte [ebp + eax - 0x204]
mov byte [ecx - 3], al
movzx eax, byte [ecx - 2]
movzx eax, byte [ebp + eax - 0x104]
mov byte [ecx - 2], al
mov esi, dword [edi + 0xc]
cmp edx, esi
jl 0x45faa1
mov eax, dword [ebp - 0x308]
inc eax
mov dword [ebp - 0x308], eax
cmp eax, dword [edi + 0x10]
jl 0x45fa90
cmp dword [edi + 0x1c], 0
je 0x45fbdd
xor eax, eax
mov dword [ebp - 0x30c], eax
cmp dword [edi + 0x10], eax
jle 0x45fbdd
mov edx, dword [edi + 0xc]
xor esi, esi
mov ecx, edx
mov dword [ebp - 0x308], esi
imul ecx, eax
mov eax, dword [edi + 0x24]
lea edi, [eax + ecx*4]
test edx, edx
jle 0x45fbc1
mov edx, 0xff
jmp 0x45fb30
movzx eax, byte [edi + 3]
mov ecx, edx
sub cx, ax
movzx eax, cx
test ax, ax
je 0x45fba8
cmp ax, dx
je 0x45fba8
movzx ecx, byte [edi]
mov esi, eax
imul ecx, esi
mov eax, 0x80808081
imul ecx
add edx, ecx
movzx ecx, byte [edi + 1]
sar edx, 7
mov eax, edx
imul ecx, esi
shr eax, 0x1f
add eax, edx
mov byte [edi], al
mov eax, 0x80808081
imul ecx
add edx, ecx
movzx ecx, byte [edi + 2]
sar edx, 7
mov eax, edx
imul ecx, esi
mov esi, dword [ebp - 0x308]
shr eax, 0x1f
add eax, edx
mov byte [edi + 1], al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0xff
mov byte [edi + 2], al
mov eax, dword [ebp - 0x310]
inc esi
add edi, 4
mov dword [ebp - 0x308], esi
cmp esi, dword [eax + 0xc]
jl 0x45fb30
mov eax, dword [ebp - 0x30c]
mov edi, dword [ebp - 0x310]
inc eax
mov dword [ebp - 0x30c], eax
cmp eax, dword [edi + 0x10]
jl 0x45fb05
mov eax, dword [ebp - 0x31c]
mov edi, dword [ebp - 0x318]
inc eax
mov esi, dword [ebp - 0x314]
add esi, 0x48
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x314], esi
cmp eax, dword [edi]
jl 0x45f976
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471a6a
mov esp, ebp
pop ebp
ret 0xc