Function at 0x4f15e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0x14]
movdqa xmm0, xmmword [0x5e9410]
mov eax, dword [ebp + 8]
movdqu xmmword [ebp - 0x84], xmm0
mov ecx, dword [edx + 0x14]
movdqa xmm0, xmmword [0x5e93f0]
movdqu xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0xc]
add ecx, eax
movdqa xmm0, xmmword [0x5e9400]
mov ebx, dword [ebp + 0x10]
movdqu xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0xd0], ecx
movdqa xmm0, xmmword [0x5e93e0]
mov ecx, dword [edx + 0x18]
add ecx, eax
mov dword [ebp - 0xe4], ebx
mov esi, dword [edx + 0x20]
movdqu xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0xdc], ecx
add esi, eax
movzx eax, word [edx + 0x10]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x44], xmm0
mov ecx, eax
mov dword [ebp - 0xc8], eax
movdqa xmm0, xmmword [0x5e9440]
shr ecx, 2
movdqu xmmword [ebp - 0x34], xmm0
sub eax, ecx
mov dword [ebp - 0xcc], ecx
movdqa xmm0, xmmword [0x5e9430]
add eax, ebx
mov ecx, dword [ebp - 0xc8]
mov bl, 0x80
movdqu xmmword [ebp - 0x24], xmm0
movdqa xmm0, xmmword [0x5e9420]
mov edi, 4
mov dword [ebp - 0xd4], edx
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + edi - 0x48]
imul eax, ecx
add eax, dword [ebp + edi - 0x88]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [ebp + edi - 0xc8], eax
mov eax, dword [ebp + edi - 0x44]
imul eax, ecx
add eax, dword [ebp + edi - 0x84]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [ebp + edi - 0xc4], eax
mov eax, dword [ebp + edi - 0x40]
imul eax, ecx
add eax, dword [ebp + edi - 0x80]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [ebp + edi - 0xc0], eax
mov eax, dword [ebp + edi - 0x3c]
imul eax, ecx
add eax, dword [ebp + edi - 0x7c]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [ebp + edi - 0xbc], eax
add edi, 0x10
cmp edi, 0x44
jb 0x4f16c1
mov ecx, dword [ebp - 0xcc]
push ecx
push 0
push dword [ebp - 0xd8]
call fcn.00595760
mov edi, dword [ebp - 0xd4]
add esp, 0xc
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x10]
dec eax
imul eax, ecx
mov ecx, dword [ebp - 0xe4]
cdq
sub eax, edx
movzx edx, word [edi + 0xa]
sar eax, 1
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [ebp - 0xc8], ecx
movzx ecx, word [edi + 8]
sub edx, ecx
inc edx
je 0x4f1872
jmp 0x4f1790
xor edi, edi
cmp dword [ebp - 0xcc], edi
jbe 0x4f1846
mov edi, edi
mov ecx, dword [ebp - 0xd0]
test byte [ecx], bl
je 0x4f17bb
mov ecx, dword [ebp - 0xdc]
mov dl, byte [ecx]
inc ecx
mov dword [ebp - 0xdc], ecx
jmp 0x4f17bd
xor dl, dl
mov ecx, dword [ebp - 0xd8]
xor byte [ecx + edi], dl
shr bl, 1
mov dl, byte [ecx + edi]
jne 0x4f17d5
inc dword [ebp - 0xd0]
mov bl, 0x80
test dl, dl
jne 0x4f17e5
mov ecx, dword [esi]
mov dword [eax], ecx
add eax, 4
add esi, 4
jmp 0x4f1839
test dl, 0xf0
je 0x4f1803
movzx ecx, dl
shr ecx, 4
mov ecx, dword [ebp + ecx*4 - 0xc4]
mov cx, word [eax + ecx*2]
mov word [eax], cx
add eax, 2
jmp 0x4f180f
mov cx, word [esi]
mov word [eax], cx
add eax, 2
add esi, 2
test dl, 0xf
je 0x4f182d
movzx ecx, dl
and ecx, 0xf
mov ecx, dword [ebp + ecx*4 - 0xc4]
mov cx, word [eax + ecx*2]
mov word [eax], cx
add eax, 2
jmp 0x4f1839
mov cx, word [esi]
mov word [eax], cx
add eax, 2
add esi, 2
inc edi
cmp edi, dword [ebp - 0xcc]
jb 0x4f17a0
mov edi, dword [ebp - 0xd4]
inc dword [ebp - 0xc8]
movzx ecx, word [edi + 0x10]
movzx edx, word [edi + 0xa]
neg ecx
lea eax, [eax + ecx*2]
movzx ecx, word [edi + 8]
sub edx, ecx
inc edx
cmp dword [ebp - 0xc8], edx
jb 0x4f1790
movzx ecx, word [edi + 0xa]
movzx eax, word [edi + 8]
sub ecx, eax
inc ecx
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0xe0]
call fcn.004585b0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret