Function at 0x61f01380
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
mov esi, eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], esi
movzx ecx, word [eax + 0x12]
movzx ebx, word [eax + 0xc]
mov dword [ebp - 0x44], edx
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp + 0x10]
movzx esi, word [eax + 0xc]
mov eax, dword [edx]
xor edx, edx
imul esi, ecx
div esi
xor edx, edx
mov esi, eax
mov eax, dword [edi]
div ebx
mov edx, dword [ebp - 0x44]
cmp esi, eax
cmovbe eax, esi
imul ebx, eax
mov esi, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [edi], ebx
mov eax, dword [eax + 8]
movzx eax, word [eax + 0xc]
imul eax, ecx
imul eax, esi
mov dword [edx], eax
lea eax, [ecx - 2]
mov dword [ebp - 0x40], eax
test esi, esi
je 0x61f01784
sub ecx, 3
shr ecx, 1
lea eax, [ecx + 2]
add ecx, 1
lea edi, [eax*4]
add eax, eax
mov dword [ebp - 0x58], edi
lea edi, [ecx*4]
mov dword [ebp - 0x50], eax
lea eax, [ecx + ecx]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], eax
jmp 0x61f01451
cmp dx, 0x10
je 0x61f01610
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc]
add dword [ebp - 0x24], eax
sub dword [ebp - 0x3c], 1
je 0x61f01784
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
movzx eax, byte [eax]
mov esi, dword [edi + 8]
cmp al, 6
ja 0x61f01768
mov edx, dword [ebp - 0x24]
movzx edi, word [eax*4 + 0x61f063c0]
movzx eax, word [eax*4 + 0x61f063c2]
mov word [ebp - 0x28], di
movsx edi, word [edx + 1]
add edx, 7
mov word [ebp - 0x2c], ax
movsx eax, word [edx - 4]
mov dword [ebp - 0x20], edi
movsx edi, word [edx - 2]
mov dword [ebp - 0x1c], edx
movzx edx, word [esi + 0xe]
mov ebx, edi
cmp dx, 8
jne 0x61f01430
mov edx, edi
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
shr edx, 8
add edx, 0xffffff80
mov byte [esi], dl
mov edx, eax
shr edx, 8
add edx, 0xffffff80
mov byte [esi + 1], dl
mov edx, esi
lea esi, [esi + 2]
mov dword [ebp - 0x38], esi
test ecx, ecx
jle 0x61f017c0
movsx ecx, word [ebp - 0x28]
add edx, dword [ebp - 0x50]
mov edi, esi
mov esi, ebx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
movsx ecx, word [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
lea esi, [esi]
nop
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx]
mov ebx, ecx
shr bl, 4
movzx ecx, bl
mov dword [ebp - 0x20], ecx
mov ecx, ebx
or ecx, 0xfffffff0
and ebx, 8
mov ebx, dword [ebp - 0x28]
cmove ecx, dword [ebp - 0x20]
imul esi, dword [ebp - 0x2c]
imul ebx, eax
add esi, ebx
lea ebx, [esi + 0xff]
cmovs esi, ebx
imul ecx, edx
mov ebx, 0xffff8000
sar esi, 8
add esi, ecx
mov ecx, 0x7fff
cmp esi, 0x7fff
cmovg esi, ecx
cmp esi, 0xffff8000
cmovl esi, ebx
mov ebx, dword [ebp - 0x20]
imul edx, dword [ebx*4 + 0x61f063e0]
mov ebx, edx
sar ebx, 8
cmp edx, 0xfff
mov edx, 0x10
cmovg edx, ebx
mov ebx, esi
add dword [ebp - 0x1c], 1
shr ebx, 8
mov ecx, ebx
add ecx, 0xffffff80
mov byte [edi], cl
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx - 1]
mov ecx, ebx
and ecx, 0xf
mov dword [ebp - 0x20], ecx
mov ecx, ebx
or ecx, 0xfffffff0
and ebx, 8
mov ebx, dword [ebp - 0x28]
cmove ecx, dword [ebp - 0x20]
imul eax, dword [ebp - 0x2c]
imul ebx, esi
add eax, ebx
lea ebx, [eax + 0xff]
cmovs eax, ebx
imul ecx, edx
mov ebx, dword [ebp - 0x20]
sar eax, 8
add eax, ecx
mov ecx, 0x7fff
cmp eax, 0x7fff
cmovg eax, ecx
mov ecx, 0xffff8000
cmp eax, 0xffff8000
cmovl eax, ecx
imul edx, dword [ebx*4 + 0x61f063e0]
mov ecx, edx
sar ecx, 8
cmp edx, 0xfff
mov edx, 0x10
cmovg edx, ecx
mov ecx, eax
add edi, 2
shr ecx, 8
add ecx, 0xffffff80
mov byte [edi - 1], cl
cmp edi, dword [ebp - 0x34]
jne 0x61f014f0
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
jmp 0x61f0143a
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
lea ecx, [esi + 4]
mov word [esi], di
mov word [esi + 2], ax
mov dword [ebp - 0x48], ecx
test edx, edx
jle 0x61f017d0
movsx edx, word [ebp - 0x28]
add esi, dword [ebp - 0x58]
mov dword [ebp - 0x38], esi
mov esi, edi
mov dword [ebp - 0x28], edx
movsx edx, word [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
lea esi, [esi]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi]
mov ebx, edx
shr bl, 4
mov edx, ebx
movzx edi, bl
or edx, 0xfffffff0
and ebx, 8
mov ebx, dword [ebp - 0x28]
cmove edx, edi
imul esi, dword [ebp - 0x2c]
imul ebx, eax
add esi, ebx
lea ebx, [esi + 0xff]
cmovs esi, ebx
mov ebx, dword [ebp - 0x20]
imul edx, ebx
sar esi, 8
add esi, edx
mov edx, 0x7fff
cmp esi, 0x7fff
cmovg esi, edx
mov edx, 0xffff8000
cmp esi, 0xffff8000
cmovl esi, edx
imul ebx, dword [edi*4 + 0x61f063e0]
mov edi, ebx
sar edi, 8
cmp ebx, 0xfff
mov ebx, 0x10
mov edx, edi
mov edi, ebx
mov ebx, esi
cmovg edi, edx
add dword [ebp - 0x1c], 1
mov byte [ecx], bl
mov ebx, esi
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x1c]
mov byte [ecx + 1], bh
movzx ebx, byte [edi - 1]
mov edx, ebx
mov edi, ebx
or edx, 0xfffffff0
and edi, 0xf
and ebx, 8
mov ebx, edx
mov edx, dword [ebp - 0x28]
cmove ebx, edi
imul eax, dword [ebp - 0x2c]
imul edx, esi
add eax, edx
mov dword [ebp - 0x34], edx
lea edx, [eax + 0xff]
cmovs eax, edx
imul ebx, dword [ebp - 0x20]
mov edx, 0x7fff
sar eax, 8
add eax, ebx
cmp eax, 0x7fff
cmovg eax, edx
mov edx, 0xffff8000
cmp eax, 0xffff8000
cmovl eax, edx
mov edx, dword [ebp - 0x20]
imul edx, dword [edi*4 + 0x61f063e0]
mov edi, 0x10
mov byte [ecx + 2], al
mov ebx, edx
mov byte [ecx + 3], ah
sar ebx, 8
cmp edx, 0xfff
mov edx, ebx
cmovle edx, edi
add ecx, 4
mov dword [ebp - 0x20], edx
cmp ecx, dword [ebp - 0x38]
jne 0x61f01648
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
jmp 0x61f0143a
movzx eax, word [esi + 0xc]
mov esi, dword [ebp - 0x40]
imul esi, dword [ebp - 0x3c]
imul esi, eax
mov eax, dword [ebp - 0x44]
sub dword [eax], esi
test byte [0x61f04018], 4
jne 0x61f01790
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0x14], str.Invalid_ADPCM_data__stopping_conversion_n
mov dword [ebp + 0x10], str.cvtMMms16K
mov dword [ebp + 0xc], 0x61f04018
mov dword [ebp + 8], 2
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
jmp 0x61f0143a
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
jmp 0x61f0143a