Function at 0x459ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ecx, 0xfffffffe
nop word cs:[eax + eax]
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x459ee0
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
lea edx, [esi + ecx]
mov word [esp + 0x14], dx
add ecx, esi
add ecx, 2
mov word [esp + 0x16], cx
mov dword [esp + 0x18], eax
lea esi, [esp + 8]
lea ebp, [esp + 0x14]
push esi
push 0
push 0
push 2
push ebp
push edi
push 0x15bd542c
call fcn.0045a120
add esp, 0x1c
mov ebx, eax
cmp eax, 0xc0000023
jne 0x45a097
push dword [esp + 8]
call fcn.0044bb80
add esp, 4
push esi
mov esi, eax
push dword [esp + 0xc]
push eax
push 2
push ebp
push edi
push 0x15bd542c
call fcn.0045a2b0
add esp, 0x1c
mov ebx, eax
test eax, eax
js 0x45a08e
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x459f83
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x45a07e
mov eax, dword [esi + 8]
lea ebp, [esi + 0xc]
mov ecx, eax
not ecx
or ecx, 3
add ecx, eax
inc ecx
je 0x459fb6
cmp ecx, 2
jne 0x459fc6
shr eax, 1
mov ecx, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
jmp 0x45a07e
shr eax, 2
mov ecx, eax
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
jmp 0x45a07e
test eax, eax
je 0x45a07e
cmp eax, 8
mov dword [esp + 4], esi
jb 0x459fe7
mov ecx, edi
sub ecx, esi
add ecx, 0xfffffff4
cmp ecx, 0x10
jae 0x45a0a1
mov edx, ebp
mov ebp, edi
mov esi, eax
dec eax
mov edi, esi
and esi, 7
je 0x45a016
mov dword [esp], eax
xor ecx, ecx
nop word [eax + eax]
movzx eax, byte [edx + ecx]
mov byte [ebp + ecx], al
inc ecx
cmp esi, ecx
jne 0x45a000
add edx, ecx
add ebp, ecx
sub edi, ecx
mov eax, dword [esp]
cmp eax, 7
mov esi, dword [esp + 4]
jb 0x45a07e
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [edx + eax]
mov byte [ebp + eax], cl
movzx ecx, byte [edx + eax + 1]
mov byte [ebp + eax + 1], cl
movzx ecx, byte [edx + eax + 2]
mov byte [ebp + eax + 2], cl
movzx ecx, byte [edx + eax + 3]
mov byte [ebp + eax + 3], cl
movzx ecx, byte [edx + eax + 4]
mov byte [ebp + eax + 4], cl
movzx ecx, byte [edx + eax + 5]
mov byte [ebp + eax + 5], cl
movzx ecx, byte [edx + eax + 6]
mov byte [ebp + eax + 6], cl
movzx ecx, byte [edx + eax + 7]
mov byte [ebp + eax + 7], cl
add eax, 8
cmp edi, eax
jne 0x45a030
cmp dword [esp + 0x40], 0
je 0x45a08e
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
push esi
call fcn.0044bba0
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
cmp eax, 0x10
jb 0x45a0d3
mov ecx, eax
and ecx, 0xfffffff0
xor edx, edx
movups xmm0, xmmword [ebp + edx]
movups xmmword [edi + edx], xmm0
add edx, 0x10
cmp ecx, edx
jne 0x45a0af
cmp eax, ecx
je 0x45a07e
test al, 8
jne 0x45a0d3
and eax, 0xf
add edi, ecx
add ebp, ecx
jmp 0x459fe7
mov esi, eax
and esi, 0xfffffff8
lea edx, [esi + ebp]
mov dword [esp + 0x10], ebp
mov dword [esp], esi
lea ebp, [edi + esi]
mov dword [esp + 0xc], eax
and eax, 7
mov esi, dword [esp + 0x10]
movsd xmm0, qword [esi + ecx]
movsd qword [edi + ecx], xmm0
add ecx, 8
cmp dword [esp], ecx
jne 0x45a0f0
mov ecx, dword [esp]
cmp dword [esp + 0xc], ecx
mov esi, dword [esp + 4]
jne 0x459feb
jmp 0x45a07e