Function at 0x41b750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jl 0x41b992
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebp + 0xc]
cmp eax, ecx
jle 0x41b77b
mov eax, ecx
mov dword [ebp + 0x14], eax
test eax, eax
je 0x41b992
test esi, esi
jl 0x41b992
mov eax, dword [ebx + 0x2c]
cdq
xor eax, edx
sub eax, edx
sub eax, dword [ebp + 0x10]
cmp esi, eax
jle 0x41b79f
mov esi, eax
mov dword [ebp + 0x18], esi
test esi, esi
je 0x41b992
mov ecx, dword [edi + 0x4c]
movzx esi, word [edi + 0x50]
imul esi, dword [ebp + 0x1c]
mov edx, dword [ebx + 0x4c]
mov eax, ecx
imul eax, dword [ebp + 0x20]
add esi, eax
add esi, dword [edi + 0x10]
movzx eax, word [ebx + 0x50]
imul eax, dword [ebp + 0xc]
mov edi, edx
imul edi, dword [ebp + 0x10]
add eax, edi
mov edi, ebx
add eax, dword [edi + 0x10]
mov ebx, dword [ebp + 0x24]
movzx edi, word [ebx + 0x50]
mov ebx, dword [ebx + 0x4c]
imul edi, dword [ebp + 0x28]
imul ebx, dword [ebp + 0x2c]
add edi, ebx
mov ebx, dword [ebp + 0x24]
add edi, dword [ebx + 0x10]
mov ebx, dword [ebp + 0x14]
add ebx, ebx
add ebx, ebx
sub edx, ebx
mov dword [ebp + 0x24], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x54]
sub ecx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x10], ecx
test edx, edx
je 0x41b8f1
cmp dword [edx], 1
jne 0x41b8f1
mov edx, dword [ebp + 0x14]
and edx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x41b830
dec edx
or edx, 0xfffffffe
inc edx
jne 0x41b8f1
shr ebx, 3
mov dword [ebp + 0x1c], ebx
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0x20]
pxor mm6, mm6
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov al, byte [esi + 7]
mov byte [ebp + 0xb], al
movzx eax, byte [ebp + 0xb]
mov dword [ebp + 0xc], eax
xor eax, eax
mov al, byte [esi + 3]
mov byte [ebp + 0xb], al
movzx eax, byte [ebp + 0xb]
mov dword [ebp + 0x14], eax
movd mm4, dword [ebp + 0xc]
punpcklbw mm4, mm6
punpcklwd mm4, mm4
punpcklwd mm4, mm4
movd mm5, dword [ebp + 0x14]
punpcklbw mm5, mm6
punpcklwd mm5, mm5
punpcklwd mm5, mm5
psraw mm4, 1
psraw mm5, 1
movq mm0, qword [esi]
movq mm2, mm0
movq mm1, qword [ebx]
movq mm3, mm1
punpckhbw mm0, mm6
punpcklbw mm2, mm6
punpckhbw mm1, mm6
punpcklbw mm3, mm6
psubw mm0, mm1
psubw mm2, mm3
pmullw mm0, mm4
psraw mm0, 7
pmullw mm2, mm5
psraw mm2, 7
paddw mm0, mm1
paddw mm2, mm3
packuswb mm2, mm0
movq qword [edx], mm2
add esi, 8
add edx, 8
add ebx, 8
dec ecx
jne 0x41b84e
add edx, dword [ebp + 0x24]
add esi, dword [ebp + 0x10]
add ebx, dword [ebp + 0x10]
dec edi
jne 0x41b84b
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov edx, dword [ebp + 0x18]
test edx, edx
jle 0x41b992
mov dword [ebp + 0xc], edx
nop
mov edx, dword [ebp + 0x14]
test edx, edx
jle 0x41b981
mov dword [ebp + 0x18], edx
lea ebx, [ebx]
movzx ecx, byte [esi + 3]
mov byte [ebp + 0xb], cl
mov cl, byte [edi]
movzx edx, byte [esi]
movzx ebx, cl
sub edx, ebx
movzx ebx, byte [ebp + 0xb]
imul edx, ebx
sar edx, 8
add dl, cl
mov byte [eax], dl
mov cl, byte [edi + 1]
movzx edx, byte [esi + 1]
inc edi
inc esi
movzx ebx, cl
sub edx, ebx
movzx ebx, byte [ebp + 0xb]
imul edx, ebx
sar edx, 8
add dl, cl
mov byte [eax + 1], dl
mov cl, byte [edi + 1]
movzx edx, byte [esi + 1]
inc eax
inc edi
inc esi
movzx ebx, cl
sub edx, ebx
movzx ebx, byte [ebp + 0xb]
imul edx, ebx
inc eax
sar edx, 8
add dl, cl
mov byte [eax], dl
movzx ecx, byte [ebp + 0xb]
inc eax
mov byte [eax], cl
inc eax
add esi, 2
add edi, 2
sub dword [ebp + 0x18], 1
jne 0x41b910
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp + 0x24]
add esi, ecx
add edi, ecx
sub dword [ebp + 0xc], 1
jne 0x41b900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28