Function at 0x629471e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x9c
cmp dword [ecx + 0x1064c8], 0
mov eax, dword [ecx + 0x106518]
jne 0x62947221
mov dword [ecx + 0x106524], eax
mov dword [ecx + 0x10651c], 0
mov dword [ecx + 0x106520], 0
jmp 0x62947251
mov edx, dword [ecx + 0x106524]
cmp edx, eax
je 0x62947251
mov dword [ecx + 0x106524], eax
lea ecx, [ecx + 0x601c]
jge 0x62947240
call method.OpenMPT::MixerSettings.GetVolumeRampUpSamples___const
jmp 0x62947245
call method.OpenMPT::MixerSettings.GetVolumeRampDownSamples___const
mov dword [ebx + 0x106520], eax
mov dword [ebx + 0x10651c], eax
mov ecx, dword [ebx + 0x10651c]
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x629472ca
mov eax, dword [ebx + 0x106524]
shl eax, 0xc
sub eax, dword [ebx + 0x106528]
cdq
mov dword [ebp - 0x20], eax
idiv ecx
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x1064c0], 2
jne 0x629472ca
mov edi, dword [ebx + 0x106520]
mov eax, 0x2710
cdq
lea ecx, [edi + 1]
idiv ecx
mov esi, eax
cmp eax, 0x32
jge 0x629472a0
mov esi, 0x32
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sar edx, 0x1f
xor eax, edx
sub eax, edx
cmp eax, esi
jle 0x629472ca
mov ecx, dword [ebx + 0x10651c]
mov eax, dword [ebp - 0x20]
add ecx, edi
cdq
idiv ecx
mov dword [ebx + 0x10651c], ecx
mov dword [ebp - 0x1c], eax
jmp 0x629472a0
mov eax, dword [ebx + 0x6030]
cmp eax, 1
jne 0x6294738f
mov edi, dword [ebx + 0x106518]
xor esi, esi
mov eax, edi
shl eax, 0xc
mov dword [ebp - 0x20], eax
cmp esi, dword [ebp + 8]
je 0x62947718
cmp dword [ebx + 0x10651c], 0
jle 0x62947348
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], 0
add eax, dword [ebx + 0x106528]
mov dword [ebx + 0x106528], eax
imul dword [ebx + esi*4 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xfffff
mov dword [ebp - 0x28], ecx
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
shrd eax, edx, 0x14
sar edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebx + esi*4 + 0xc], eax
dec dword [ebx + 0x10651c]
jmp 0x62947389
mov eax, edi
mov dword [ebp - 0x2c], 0
imul dword [ebx + esi*4 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [ebp - 0x30], ecx
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
shrd eax, edx, 8
sar edx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebx + esi*4 + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x106528], eax
inc esi
jmp 0x629472e9
cmp eax, 2
jne 0x629474c6
mov edi, dword [ebx + 0x106518]
xor esi, esi
mov eax, edi
shl eax, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], esi
je 0x62947718
cmp dword [ebx + 0x10651c], 0
jle 0x62947447
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 0
add eax, dword [ebx + 0x106528]
mov dword [ebx + 0x106528], eax
imul dword [ebx + esi*8 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xfffff
mov dword [ebp - 0x38], ecx
add eax, dword [ebp - 0x38]
adc edx, dword [ebp - 0x34]
shrd eax, edx, 0x14
sar edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x3c], 0
mov dword [ebx + esi*8 + 0xc], eax
mov eax, dword [ebx + 0x106528]
imul dword [ebx + esi*8 + 0x10]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xfffff
mov dword [ebp - 0x40], ecx
add eax, dword [ebp - 0x40]
adc edx, dword [ebp - 0x3c]
shrd eax, edx, 0x14
sar edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebx + esi*8 + 0x10], eax
dec dword [ebx + 0x10651c]
jmp 0x629474c0
mov eax, edi
mov dword [ebp - 0x44], 0
imul dword [ebx + esi*8 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [ebp - 0x48], ecx
add eax, dword [ebp - 0x48]
adc edx, dword [ebp - 0x44]
shrd eax, edx, 8
sar edx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x4c], 0
mov dword [ebx + esi*8 + 0xc], eax
mov eax, edi
imul dword [ebx + esi*8 + 0x10]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [ebp - 0x50], ecx
add eax, dword [ebp - 0x50]
adc edx, dword [ebp - 0x4c]
shrd eax, edx, 8
sar edx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebx + esi*8 + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x106528], eax
inc esi
jmp 0x629473a8
cmp eax, 4
jne 0x62947718
mov edi, dword [ebx + 0x106518]
xor esi, esi
mov eax, edi
shl eax, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], esi
je 0x62947718
cmp dword [ebx + 0x10651c], 0
jle 0x62947605
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], 0
add eax, dword [ebx + 0x106528]
mov dword [ebx + 0x106528], eax
imul dword [ebx + esi*8 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xfffff
mov dword [ebp - 0x58], ecx
add eax, dword [ebp - 0x58]
adc edx, dword [ebp - 0x54]
shrd eax, edx, 0x14
sar edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x5c], 0
mov dword [ebx + esi*8 + 0xc], eax
mov eax, dword [ebx + 0x106528]
imul dword [ebx + esi*8 + 0x10]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xfffff
mov dword [ebp - 0x60], ecx
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
shrd eax, edx, 0x14
sar edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x64], 0
mov dword [ebx + esi*8 + 0x10], eax
mov eax, dword [ebx + 0x106528]
imul dword [ebx + esi*8 + 0x200c]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xfffff
mov dword [ebp - 0x68], ecx
add eax, dword [ebp - 0x68]
adc edx, dword [ebp - 0x64]
shrd eax, edx, 0x14
sar edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x6c], 0
mov dword [ebx + esi*8 + 0x200c], eax
mov eax, dword [ebx + 0x106528]
imul dword [ebx + esi*8 + 0x2010]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xfffff
mov dword [ebp - 0x70], ecx
add eax, dword [ebp - 0x70]
adc edx, dword [ebp - 0x6c]
shrd eax, edx, 0x14
sar edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebx + esi*8 + 0x2010], eax
dec dword [ebx + 0x10651c]
jmp 0x62947712
mov eax, edi
mov dword [ebp - 0x74], 0
imul dword [ebx + esi*8 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [ebp - 0x78], ecx
add eax, dword [ebp - 0x78]
adc edx, dword [ebp - 0x74]
shrd eax, edx, 8
sar edx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x7c], 0
mov dword [ebx + esi*8 + 0xc], eax
mov eax, edi
imul dword [ebx + esi*8 + 0x10]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [ebp - 0x80], ecx
add eax, dword [ebp - 0x80]
adc edx, dword [ebp - 0x7c]
shrd eax, edx, 8
sar edx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x84], 0
mov dword [ebx + esi*8 + 0x10], eax
mov eax, edi
imul dword [ebx + esi*8 + 0x200c]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [ebp - 0x88], ecx
add eax, dword [ebp - 0x88]
adc edx, dword [ebp - 0x84]
shrd eax, edx, 8
sar edx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebp - 0x8c], 0
mov dword [ebx + esi*8 + 0x200c], eax
mov eax, edi
imul dword [ebx + esi*8 + 0x2010]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [ebp - 0x90], ecx
add eax, dword [ebp - 0x90]
adc edx, dword [ebp - 0x8c]
shrd eax, edx, 8
sar edx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call method.int_mpt::mpt_libopenmpt.saturate_cast_int__long_long__long_long_
mov dword [ebx + esi*8 + 0x2010], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x106528], eax
inc esi
jmp 0x629474df
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret 4