Function at 0x100294e0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
inc ecx
test eax, eax
mov dword [esi + reloc.WINMM.dll_midiStreamRestart], ecx
je 0x1002955c
call fcn.101cd8d6
pop ebp
cmp eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
je 0x1002955c
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1002953e
push eax
call fcn.101c39d9
mov ebp, 0x1574c085
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
push 0
push edi
push 0x83e7
push eax
call fcn.101c30dd
mov ch, 0x8b
xchg byte [eax], ch
add al, 0
add byte [ebp + 0x12850fc0], al
add eax, dword [eax]
add byte [edi - 0x18], dl
mov ebp, 0x52001a45
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
test eax, eax
jne 0x1002985e
push edi
call fcn.101cdb0f
push edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
mov dword [esi + reloc.WINMM.dll_midiStreamRestart], 1
call fcn.10028270
mov edx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
lea ecx, reloc.WINMM.dll_midiStreamRestart
call dword [edx + 8]
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
test eax, eax
je 0x100295b8
mov al, byte [0xc990cd9]
test al, 1
jne 0x100295a1
or al, 1
mov byte [0xc990cd9], al
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov dword [reloc.WINMM.dll_midiStreamRestart], eax
pushal
call dword [0xc990cdd]
popal
mov ecx, dword [ebp - 4]
mov esi, ecx
mov dword [ecx + reloc.WINMM.dll_midiStreamRestart], 0
mov ebx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
xor edi, edi
shr ebx, 2
test ebx, ebx
jle 0x100295ea
mov edx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x100295e5
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
push 0
mov edx, dword [ecx + edi*4]
push edx
push 6
call dword [eax + 0x78]
inc edi
cmp edi, ebx
jl 0x100295c7
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
mov ebx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
shr ebx, 2
test ebx, ebx
jle 0x10029658
xor edi, edi
test ebx, ebx
jle 0x1002962c
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x10029627
push eax
call fcn.101cd8b1
dec eax
inc edi
cmp edi, ebx
jl 0x10029613
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
mov ebx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
shr ebx, 2
test ebx, ebx
jle 0x1002969a
xor edi, edi
test ebx, ebx
jle 0x10029680
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov edx, dword [ecx + edi*4]
push edx
call fcn.101cd8b1
rol dword [edi + 0x3b], 0xfb
jl 0x1002966b
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
push 0xffffffffffffffff
push 0
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.100725fb
mov ecx, esi
call fcn.10028900
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.10073411
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
xor ebx, ebx
cmp eax, ebx
je 0x100296d0
push eax
call fcn.101c4a7b
sbb eax, 0x4209e89
add byte [eax], al
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
cmp eax, ebx
je 0x100296e7
push eax
call fcn.101c4a7b
adc byte [ecx + 0x4249e], cl
add byte [ebx + 0x3f086], cl
add byte [ebx], bh
ret
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
cmp eax, ebx
je 0x1002971b
push eax
call fcn.101c39d9
pop es
test eax, eax
je 0x1002971b
push ebx
call fcn.10074e17
test eax, eax
je 0x10029715
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
lea ecx, reloc.WINMM.dll_midiStreamRestart
call dword [eax + 0x58]
mov dword [esi + reloc.WINMM.dll_midiStreamRestart], ebx
mov ecx, esi
call fcn.10027070
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
xor edi, edi
cmp eax, ebx
mov dword [ebp + 8], eax
jle 0x1002974c
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x10029747
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x10029731
push 0xffffffffffffffff
push ebx
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.10072895
push 1
mov ecx, esi
call fcn.1002b790
cmp dword [esi + reloc.WINMM.dll_midiStreamRestart], ebx
jne 0x1002976f
xor ecx, ecx
jmp 0x10029775
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamRestart]
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
shr eax, 2
cmp eax, ebx
jle 0x100297d8
call 0x8ec5d283
push esi
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov edi, dword [ecx]
cmp edi, ebx
je 0x100297c6
mov eax, dword [edi + 0xc]
mov dword [edi], ebx
cmp eax, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x14], ebx
je 0x100297aa
push eax
call fcn.101c4a7b
cld
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x100297bd
push eax
call fcn.100731f0
add esp, 4
mov dword [edi + 0x10], ebx
push edi
call fcn.100731f0
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add ecx, 4
dec eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
jne 0x10029788
lea ecx, reloc.WINMM.dll_midiStreamRestart
call fcn.1001bc00
cmp dword [esi + reloc.WINMM.dll_midiStreamRestart], 1
jne 0x100297f8
call fcn.101cdba1
ja 0x1002977c
sahf
lodsb al, byte [esi]
add eax, dword [eax]
add byte [ebx + 0xf89e], cl
add byte [ebx], dh
inc dword [ebp - reloc.WINMM.dll_midiStreamRestart]
xchg ah, dh
add byte [eax], al
add byte [ebx + 0xe096], cl
add byte [edx], ch
mov ebx, dword [esi + 0xf8]
xor edi, edi
test ebx, ebx
jle 0x10029826
mov eax, dword [esi + 0xf4]
mov edx, dword [esi + 0xe0]
push 0
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + edi*4]
push ecx
push eax
mov ecx, esi
call fcn.100290c0
inc edi
cmp edi, ebx
jl 0x10029804
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xdc]
call fcn.100725fb
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xf0]
call fcn.100725fb
mov eax, dword [esi + reloc.WINMM.dll_midiStreamRestart]
test eax, eax
je 0x1002985e
call fcn.101cdcba
inc esi
mov dword [esi + reloc.WINMM.dll_midiStreamRestart], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4