Function at 0x62947224
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x9c
cmp dword [ecx + 0x1064c8], 0
mov eax, dword [ecx + 0x106518]
jne 0x6294725b
mov dword [ecx + 0x106524], eax
mov dword [ecx + 0x10651c], 0
mov dword [ecx + 0x106520], 0
jmp 0x6294728b
mov edx, dword [ecx + 0x106524]
cmp edx, eax
je 0x6294728b
mov dword [ecx + 0x106524], eax
lea ecx, [ecx + 0x601c]
jge 0x6294727a
call method.OpenMPT::MixerSettings.GetVolumeRampUpSamples___const
jmp 0x6294727f
call method.OpenMPT::MixerSettings.GetVolumeRampDownSamples___const
mov dword [ebx + 0x106520], eax
mov dword [ebx + 0x10651c], eax
mov esi, dword [ebx + 0x10651c]
mov dword [esp + 0x1c], 0
test esi, esi
jle 0x62947307
mov ecx, dword [ebx + 0x106524]
shl ecx, 0xc
sub ecx, dword [ebx + 0x106528]
mov eax, ecx
cdq
idiv esi
mov dword [esp + 0x1c], eax
cmp byte [ebx + 0x1064c0], 2
jne 0x62947307
mov edi, dword [ebx + 0x106520]
mov eax, 0x2710
cdq
lea ebp, [edi + 1]
idiv ebp
mov esi, eax
cmp eax, 0x32
jge 0x629472db
mov esi, 0x32
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
sar edx, 0x1f
xor eax, edx
sub eax, edx
cmp eax, esi
jle 0x62947307
mov ebp, dword [ebx + 0x10651c]
mov eax, ecx
add ebp, edi
cdq
idiv ebp
mov dword [ebx + 0x10651c], ebp
mov dword [esp + 0x1c], eax
jmp 0x629472db
mov eax, dword [ebx + 0x6030]
cmp eax, 1
jne 0x629473d3
mov edi, dword [ebx + 0x106518]
xor esi, esi
mov ebp, edi
shl ebp, 0xc
cmp esi, dword [esp + 0xb0]
je 0x6294778a
cmp dword [ebx + 0x10651c], 0
jle 0x6294738b
mov eax, dword [esp + 0x1c]
mov dword [esp + 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 [esp + 0x20], ecx
add eax, dword [esp + 0x20]
adc edx, dword [esp + 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 0x629473cd
mov eax, edi
mov dword [esp + 0x2c], 0
imul dword [ebx + esi*4 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [esp + 0x28], ecx
add eax, dword [esp + 0x28]
adc edx, dword [esp + 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 dword [ebx + 0x106528], ebp
inc esi
jmp 0x62947323
cmp eax, 2
jne 0x62947519
mov edi, dword [ebx + 0x106518]
xor esi, esi
mov ebp, edi
shl ebp, 0xc
cmp dword [esp + 0xb0], esi
je 0x6294778a
cmp dword [ebx + 0x10651c], 0
jle 0x62947495
mov eax, dword [esp + 0x1c]
mov dword [esp + 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 [esp + 0x30], ecx
add eax, dword [esp + 0x30]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x38], ecx
add eax, dword [esp + 0x38]
adc edx, dword [esp + 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 0x62947513
mov eax, edi
mov dword [esp + 0x44], 0
imul dword [ebx + esi*8 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [esp + 0x40], ecx
add eax, dword [esp + 0x40]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x48], ecx
add eax, dword [esp + 0x48]
adc edx, dword [esp + 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 dword [ebx + 0x106528], ebp
inc esi
jmp 0x629473e9
cmp eax, 4
jne 0x6294778a
mov edi, dword [ebx + 0x106518]
xor esi, esi
mov ebp, edi
shl ebp, 0xc
cmp dword [esp + 0xb0], esi
je 0x6294778a
cmp dword [ebx + 0x10651c], 0
jle 0x6294766a
mov eax, dword [esp + 0x1c]
mov dword [esp + 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 [esp + 0x50], ecx
add eax, dword [esp + 0x50]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x58], ecx
add eax, dword [esp + 0x58]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x60], ecx
add eax, dword [esp + 0x60]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x68], ecx
add eax, dword [esp + 0x68]
adc edx, dword [esp + 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 0x62947784
mov eax, edi
mov dword [esp + 0x74], 0
imul dword [ebx + esi*8 + 0xc]
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
mov dword [esp + 0x70], ecx
add eax, dword [esp + 0x70]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x78], ecx
add eax, dword [esp + 0x78]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x80], ecx
add eax, dword [esp + 0x80]
adc edx, dword [esp + 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 [esp + 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 [esp + 0x88], ecx
add eax, dword [esp + 0x88]
adc edx, dword [esp + 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 dword [ebx + 0x106528], ebp
inc esi
jmp 0x6294752f
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret 4