Function at 0x43cb70
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, eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
jl 0x43cde4
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebp + 0xc]
cmp eax, ecx
jle 0x43cb9b
mov eax, ecx
mov dword [ebp + 0x14], eax
test eax, eax
je 0x43cde4
test edi, edi
jl 0x43cde4
mov eax, dword [ebx + 0x2c]
cdq
xor eax, edx
sub eax, edx
sub eax, dword [ebp + 0x10]
cmp edi, eax
jle 0x43cbbf
mov edi, eax
mov dword [ebp + 0x18], edi
test edi, edi
je 0x43cde4
mov edx, dword [esi + 0x4c]
movzx ecx, word [esi + 0x50]
imul ecx, dword [ebp + 0x1c]
mov edi, dword [ebx + 0x4c]
mov eax, edx
imul eax, dword [ebp + 0x20]
add ecx, eax
add ecx, dword [esi + 0x10]
movzx eax, word [ebx + 0x50]
imul eax, dword [ebp + 0xc]
mov esi, edi
imul esi, dword [ebp + 0x10]
add eax, esi
mov esi, ebx
add eax, dword [esi + 0x10]
mov ebx, dword [ebp + 0x24]
movzx esi, word [ebx + 0x50]
mov ebx, dword [ebx + 0x4c]
imul esi, dword [ebp + 0x28]
imul ebx, dword [ebp + 0x2c]
add esi, ebx
mov ebx, dword [ebp + 0x24]
add esi, dword [ebx + 0x10]
mov ebx, dword [ebp + 0x14]
add ebx, ebx
add ebx, ebx
sub edi, ebx
mov dword [ebp + 0x24], edi
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x54]
sub edx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x10], edx
test edi, edi
je 0x43cd17
cmp dword [edi], 1
jne 0x43cd17
mov edi, dword [ebp + 0x14]
and edi, reloc.DSOUND.dll_DirectSoundCreate
jns 0x43cc50
dec edi
or edi, 0xfffffffe
inc edi
jne 0x43cd17
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 mm7, qword [edx]
paddusb mm2, mm7
movq qword [edx], mm2
add esi, 8
add edx, 8
add ebx, 8
dec ecx
jne 0x43cc6e
add edx, dword [ebp + 0x24]
add esi, dword [ebp + 0x10]
add ebx, dword [ebp + 0x10]
dec edi
jne 0x43cc6b
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov edi, dword [ebp + 0x18]
test edi, edi
jle 0x43cde4
mov dword [ebp + 0xc], edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x43cdd3
mov dword [ebp + 0x18], edi
mov dl, byte [ecx + 3]
mov byte [ebp + 0xb], dl
movzx edi, byte [esi]
movzx ebx, byte [ecx]
movzx edx, dl
sub ebx, edi
imul ebx, edx
movzx edx, byte [eax]
sar ebx, 8
add ebx, edi
add edx, ebx
inc ecx
cmp edx, 0xff
jle 0x43cd5f
mov edx, 0xff
mov byte [eax], dl
movzx edi, byte [esi + 1]
movzx ebx, byte [ecx]
movzx edx, byte [ebp + 0xb]
inc esi
sub ebx, edi
imul ebx, edx
movzx edx, byte [eax + 1]
inc eax
sar ebx, 8
add ebx, edi
add edx, ebx
inc ecx
cmp edx, 0xff
jle 0x43cd8c
mov edx, 0xff
mov byte [eax], dl
movzx edi, byte [esi + 1]
movzx ebx, byte [ecx]
movzx edx, byte [ebp + 0xb]
inc esi
sub ebx, edi
imul ebx, edx
movzx edx, byte [eax + 1]
inc eax
sar ebx, 8
add ebx, edi
add edx, ebx
inc ecx
cmp edx, 0xff
jle 0x43cdb9
mov edx, 0xff
mov byte [eax], dl
mov dl, byte [ebp + 0xb]
inc eax
mov byte [eax], dl
inc eax
inc ecx
add esi, 2
sub dword [ebp + 0x18], 1
jne 0x43cd33
mov edx, dword [ebp + 0x10]
add eax, dword [ebp + 0x24]
add ecx, edx
add esi, edx
sub dword [ebp + 0xc], 1
jne 0x43cd25
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28