Function at 0x44f2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x44f476
push edi
mov edi, dword [esp + 0x58]
test edi, edi
je 0x44f475
push esi
mov esi, dword [ebx]
cmp esi, 1
jl 0x44f474
mov ecx, dword [ebx + 4]
cmp ecx, 1
jl 0x44f474
push ebp
mov ebp, dword [edi]
cmp ebp, 1
jle 0x44f473
mov eax, dword [edi + 4]
cmp eax, 1
jle 0x44f473
mov dl, byte [esp + 0x64]
test dl, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
jne 0x44f5cf
mov dword [esp + 0x10], 0
mov ebp, 1
test dl, 2
mov edx, dword [edi + 0x10]
mov edi, edx
jne 0x4e01f5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
imul edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x10]
add edx, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x14]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x28]
shl eax, 8
sub eax, 0x100
mov dword [esp + 0x20], edx
cdq
idiv esi
test ecx, ecx
jle 0x44f471
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
shl eax, 8
sub eax, 0x100
cdq
idiv ecx
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x20]
mov ecx, eax
sar ecx, 8
imul ecx, edi
lea ecx, [edx + ecx*4]
and eax, 0xff
test esi, esi
mov dword [esp + 0x20], ecx
jle 0x44f453
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
lea esp, [esp]
mov eax, edx
sar eax, 8
imul eax, ebp
lea ecx, [ecx + eax*4]
lea esi, [ecx + edi*4]
lea eax, [esi + ebp*4]
mov dword [esp + 0x34], eax
mov al, byte [eax + 3]
or al, byte [ecx + ebp*4 + 3]
lea edi, [ecx + ebp*4]
or al, byte [esi + 3]
and edx, 0xff
or al, byte [ecx + 3]
ja 0x44f47b
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx]
add edx, dword [esp + 0x4c]
add dword [esp + 0x14], 4
mov edi, dword [esp + 0x18]
add eax, 1
cmp eax, esi
mov dword [esp + 0x24], eax
jl 0x44f400
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0x50]
add dword [esp + 0x14], ecx
cmp edx, dword [ebx + 4]
jl 0x44f3d3
emms
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x48
ret
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x38], esi
mov esi, 0x100
sub esi, ebx
mov eax, 0x100
imul esi, edx
mov dword [esp + 0x44], edi
sub eax, edx
imul eax, ebx
mov edi, edx
imul edi, ebx
sar esi, 8
mov ebx, 0x101
sar eax, 8
sub ebx, esi
sar edi, 8
sub ebx, eax
sub ebx, edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebx
pxor mm0, mm0
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
movd mm1, dword [esi]
movd mm3, dword [edi]
punpcklbw mm1, mm0
punpcklbw mm3, mm0
movd mm2, dword [esp + 0x40]
movd mm4, dword [esp + 0x3c]
punpcklwd mm2, mm2
punpcklwd mm4, mm4
punpcklwd mm2, mm2
punpcklwd mm4, mm4
pmullw mm1, mm2
pmullw mm3, mm4
movq mm5, mm1
paddw mm5, mm3
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
movd mm1, dword [esi]
movd mm3, dword [edi]
punpcklbw mm1, mm0
punpcklbw mm3, mm0
movd mm2, dword [esp + 0x30]
movd mm4, dword [esp + 0x2c]
punpcklwd mm2, mm2
punpcklwd mm4, mm4
punpcklwd mm2, mm2
punpcklwd mm4, mm4
pmullw mm1, mm2
pmullw mm3, mm4
paddw mm5, mm1
paddw mm5, mm3
psrlw mm5, 8
packuswb mm5, mm0
movd dword [esp + 0x10], mm5
lea eax, [esp + 0x10]
mov dword [esp + 0x48], eax
mov al, byte [esp + 0x13]
cmp al, 0xff
je 0x44f5b4
test al, al
jbe 0x44f42d
mov eax, dword [0x5ab9e4]
add dword [eax + 0x160], 1
pxor mm5, mm5
mov eax, dword [esp + 0x48]
movd mm0, dword [eax]
punpcklbw mm0, mm5
mov eax, dword [esp + 0x14]
movd mm1, dword [eax]
punpcklbw mm1, mm5
movq mm3, mm0
punpckhwd mm3, mm3
punpckhwd mm3, mm3
pxor mm3, qword [0x5aa980]
pmullw mm1, mm3
paddw mm1, qword [0x5aa978]
movq mm3, mm1
psrlw mm3, 8
paddw mm3, mm1
psrlw mm3, 8
paddusb mm3, mm0
packuswb mm3, mm5
movd dword [eax], mm3
jmp 0x44f42d
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [0x5ab9e4]
add dword [eax + 0x15c], 1
jmp 0x44f42d
add ebp, 0xffffffff
mov dword [esp + 0x10], ebp
or ebp, 0xffffffff
jmp 0x44f34f
add eax, 0xffffffff
neg edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
jmp 0x44f369