Function at 0x101966f7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc8
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0xd0]
xor eax, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x3c], ecx
cmp dword [ebx + 0x44], eax
push esi
push edi
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
jne 0x10197da2
mov edx, dword [esp + 0x44]
cmp byte [edx + 0x38], al
jne 0x10197da2
push ebp
mov eax, edi
call fcn.1018ccd7
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x10197d9f
mov esi, dword [ebp + 0x40]
mov ecx, dword [ebx]
call fcn.10140fa7
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x64]
push eax
push ecx
push 0x6b
push ebp
mov eax, ebx
call fcn.10141777
mov ecx, dword [ebp + 0xc]
xor edx, edx
test ecx, ecx
setne dl
push ebp
push ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x84], edx
call fcn.101928d7
add esp, 0x18
test eax, eax
jne 0x10197d9f
mov eax, dword [esp + 0x64]
push eax
mov ecx, ebp
mov eax, ebx
call fcn.10151d47
add esp, 4
test eax, eax
jne 0x10197d9f
movsx ecx, word [ebp + 0x26]
mov esi, dword [esp + 0x48]
shl ecx, 2
call fcn.10143be7
test eax, eax
mov dword [esp + 0x2c], eax
je 0x10197d9f
xor edx, edx
xor eax, eax
cmp word [ebp + 0x26], dx
jle 0x10196807
mov ecx, dword [esp + 0x2c]
lea esp, [esp]
mov dword [ecx + eax*4], reloc.WINMM.dll_midiStreamOut
movsx esi, word [ebp + 0x26]
inc eax
cmp eax, esi
jl 0x101967f7
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x34], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x48]
inc eax
mov dword [ebx + 0x48], eax
mov ecx, eax
mov eax, dword [ebp + 8]
cmp eax, edx
je 0x10196832
lea ebx, [ebx]
inc ecx
mov dword [ebx + 0x48], ecx
mov eax, dword [eax + 0x14]
cmp eax, edx
jne 0x10196827
mov eax, dword [esp + 0xe4]
xor ecx, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
cmp dword [eax], edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], edx
jle 0x10196a77
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + eax]
push ecx
lea esi, [esp + 0x7c]
call fcn.10161177
add esp, 4
test eax, eax
jne 0x10197d9f
movsx eax, word [ebp + 0x26]
xor edi, edi
test eax, eax
mov dword [esp + 0x30], edi
jle 0x10196967
mov edx, dword [esp + 0xe4]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + ecx + 4]
mov esi, dword [ebp + 4]
add eax, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], edx
lea esp, [esp]
mov ecx, dword [esi]
mov al, byte [ecx]
test al, al
mov edx, dword [esp + 0x34]
je 0x10196918
lea esp, [esp]
movzx edi, byte [edx]
movzx eax, al
mov al, byte [eax + 0x10182d30]
cmp al, byte [edi + 0x10182d30]
jne 0x10196914
mov al, byte [ecx + 1]
inc ecx
inc edx
test al, al
jne 0x101968f7
mov edi, dword [esp + 0x30]
movzx ecx, byte [ecx]
movzx eax, byte [ecx + 0x10182d30]
movzx ecx, byte [edx]
movzx edx, byte [ecx + 0x10182d30]
sub eax, edx
je 0x10196942
movsx eax, word [ebp + 0x26]
inc edi
add esi, 0x18
cmp edi, eax
mov dword [esp + 0x30], edi
jl 0x101968e7
jmp 0x10196967
movsx eax, word [ebp + 0x24]
cmp edi, eax
jne 0x1019695c
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov dword [ecx + edi*4], eax
movsx edx, word [ebp + 0x26]
cmp edi, edx
jl 0x10196a0d
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x28]
mov esi, dword [ecx + edx + 4]
lea edi, [ecx + edx]
mov dl, byte [esi]
test dl, dl
mov eax, esi
mov ecx, 0x10187534
je 0x101969bb
mov edi, edi
movzx ebx, byte [ecx]
movzx edx, dl
mov dl, byte [edx + 0x10182d30]
cmp dl, byte [ebx + 0x10182d30]
jne 0x101969b4
mov dl, byte [eax + 1]
inc eax
inc ecx
test dl, dl
jne 0x10196997
mov ebx, dword [esp + 0xdc]
movzx ecx, byte [ecx]
movzx eax, byte [eax]
movzx edx, byte [ecx + 0x10182d30]
movzx ecx, byte [eax + 0x10182d30]
sub ecx, edx
je 0x101969fb
push 0x1018752c
push esi
call fcn.101397b7
add esp, 8
test eax, eax
je 0x101969fb
push 0x10187528
push esi
call fcn.101397b7
add esp, 8
test eax, eax
jne 0x10196b12
mov edx, dword [edi]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x38]
shl eax, 4
mov eax, dword [eax + edx]
mov edx, dword [ebp + 4]
push eax
lea ecx, [edi + edi*2]
mov eax, dword [edx + ecx*8]
mov ecx, dword [ebp]
push eax
push ecx
push 0x17
mov eax, ebx
call fcn.101508c7
add esp, 0x10
cmp eax, 1
je 0x10197d9f
cmp eax, 2
jne 0x10196a52
mov edx, dword [esp + 0x2c]
mov dword [edx + edi*4], reloc.WINMM.dll_midiStreamOut
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx]
inc eax
add esi, 0x14
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], esi
jl 0x10196889
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push ebp
mov eax, ebx
call fcn.10140b57
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x10196abd
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x10196a99
test ecx, ecx
jle 0x10196abd
mov esi, dword [esp + 0x48]
shl ecx, 2
call fcn.10143be7
test eax, eax
mov dword [esp + 0x44], eax
je 0x10197d9f
mov edx, dword [ebp + 8]
test edx, edx
je 0x10196b68
mov eax, dword [esp + 0x44]
mov dword [esp + 0x50], eax
lea esp, [esp]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x10196b47
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x10196b47
mov esi, dword [edx + 0x24]
xor edi, edi
xor eax, eax
test esi, esi
jle 0x10196b50
mov ecx, dword [edx + 4]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ecx]
cmp dword [ebx + ebp*4], 0
jge 0x10196b40
inc eax
add ecx, 4
cmp eax, esi
jl 0x10196af9
mov ebx, dword [esp + 0xdc]
jmp 0x10196b50
mov eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edx*4 + 4]
push edx
push 0x1018aa14
mov edi, ebx
call fcn.1014d297
add esp, 8
mov byte [ebx + 0x11], 1
jmp 0x10197d9f
mov ebx, dword [esp + 0xdc]
mov eax, dword [ebx + 0x4c]
inc eax
mov dword [ebx + 0x4c], eax
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [eax], edi
mov edx, dword [edx + 0x14]
add eax, 4
test edx, edx
mov dword [esp + 0x50], eax
jne 0x10196ad7
mov ebx, dword [esp + 0xdc]
mov ebp, dword [ebx + 8]
test ebp, ebp
jne 0x10196c08
mov esi, dword [ebx]
mov ecx, 0xc0
call fcn.10143be7
mov edx, eax
test edx, edx
je 0x10196c9d
xor eax, eax
mov ecx, 0x30
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x10196ba7
mov dword [eax + 0x38], edx
mov ecx, dword [esi + 4]
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x38], 0
mov dword [esi + 4], edx
mov dword [edx + 0x30], 0x26bceaa5
mov edi, edx
test edi, edi
mov dword [ebx + 8], edi
mov ebp, edi
je 0x10197d9f
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0x20], esi
jg 0x10196bde
call fcn.101472c7
test eax, eax
jne 0x10196c01
inc dword [edi + 0x1c]
mov eax, dword [edi + 4]
xor ecx, ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x94
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ebx, dword [esp + 0xdc]
mov al, byte [ebx + 0x12]
test al, al
jne 0x10196c13
or dword [ebp + 0x60], 0x10
mov esi, dword [ebx + reloc.WINMM.dll_midiStreamOut]
test esi, esi
jne 0x10196c1f
mov esi, ebx
mov edi, dword [esp + 0x38]
push edi
mov eax, ebx
call fcn.1017ba17
mov ecx, edi
mov edi, dword [esi + reloc.WINMM.dll_midiStreamOut]
mov edx, 1
shl edx, cl
or byte [esi + 0x17], 1
mov ecx, dword [esp + 0x18]
or edi, edx
mov dword [esi + reloc.WINMM.dll_midiStreamOut], edi
mov al, byte [ecx + 0x2a]
add esp, 4
test al, 0x10
je 0x10196ca4
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0xf0]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xf8]
push ecx
push ebx
call fcn.10190417
add esp, 0x20
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe0], eax
jmp 0x10197d9f
xor edi, edi
jmp 0x10196bc0
mov eax, dword [ebx + 0x4c]
mov edx, dword [esp + 0x54]
inc eax
mov dword [esp + 0x50], eax
inc eax
test edx, edx
mov dword [ebx + 0x4c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
jne 0x10196cc8
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10196cd8
lea esi, [eax + 1]
mov dword [esp + 0x68], esi
movsx esi, word [ecx + 0x26]
add esi, eax
mov dword [ebx + 0x4c], esi
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x10196cec
test edx, edx
jne 0x10196cec
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10196cf9
mov eax, dword [ebx + 0x4c]
inc eax
mov edx, eax
mov dword [ebx + 0x4c], eax
mov dword [esp + 0x28], edx
mov eax, dword [ebx + 0x4c]
lea edx, [eax + 1]
mov dword [esp + 0x4c], edx
movsx edx, word [ecx + 0x26]
add edx, eax
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [ebx + 0x4c], edx
je 0x10196d44
mov eax, dword [ebx + reloc.WINMM.dll_midiStreamOut]
mov edx, dword [ecx]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [ebx + reloc.WINMM.dll_midiStreamOut], edx
mov edx, dword [esp + 0xec]
push edx
push ecx
push ebx
mov dword [esp + 0x84], ebx
call fcn.10191ef7
add esp, 0x10
mov eax, dword [esp + 0xe8]
push eax
lea esi, [esp + 0x7c]
call fcn.10161177
add esp, 4
test eax, eax
jne 0x10197d9f
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10196d73
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10196da4
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov byte [eax], 0xa
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x10196da6
xor ebx, ebx
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
push ebx
push 4
push ebx
push ebx
push eax
push ecx
push edx
call fcn.10189917
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x10], esi
je 0x10197d9f
movzx eax, byte [esi + 0xc]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x60], eax
cmp dword [ebp + 0x20], ebx
jg 0x10196df4
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10196e25
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov byte [eax], 0x41
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x10196e27
xor ebx, ebx
cmp dword [esp + 0x60], ebx
jne 0x10196e71
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10196e40
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10196e6d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x70
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [esp + 0x10]
push esi
call fcn.1014b547
mov edx, dword [esp + 0x4c]
mov al, byte [edx + 0x18]
add esp, 4
test al, 0x10
je 0x10196edb
mov eax, dword [esp + 0xdc]
cmp dword [eax + reloc.WINMM.dll_midiStreamOut], ebx
jne 0x10196edb
mov ecx, dword [eax + 0x4c]
inc ecx
mov dword [eax + 0x4c], ecx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x5c], ecx
jg 0x10196eb2
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10196edb
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x5c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x6c], ebx
jne 0x10197055
cmp dword [esp + 0x60], ebx
mov esi, dword [esp + 0x14]
jne 0x10196f0c
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xdc]
push 0x28
push edx
push eax
mov eax, esi
call fcn.1015ab57
add esp, 0xc
mov eax, dword [esp + 0xec]
mov ecx, 5
cmp eax, ecx
je 0x10196f35
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esp + 0x58], ebx
je 0x10196f3d
cmp byte [eax + 0x2c], cl
je 0x10196f35
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x10196f27
jmp 0x10196f3d
mov dword [esp + 0x58], 1
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
je 0x10197055
lea esp, [esp]
cmp dword [esp + 0x58], ebx
jne 0x10196f6e
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
cmp dword [ecx + edx*4], ebx
jle 0x10197039
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xdc]
push esi
push eax
call fcn.101625b7
mov ecx, dword [esi + 0x28]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x20]
add esp, 8
cmp eax, esi
mov dword [esp + 0x40], ecx
jg 0x10196faa
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10196faa
mov esi, 1
jmp 0x10196fe3
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
lea ecx, [ecx + edx + 1]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov byte [eax], 0x28
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
mov eax, esi
je 0x1019702b
cmp byte [edi + 0x38], bl
jne 0x1019702b
cmp esi, ebx
jge 0x10196ffc
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10147587
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x10197022
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x10197039
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x10197039
mov ecx, dword [esp + 0x34]
mov eax, 0xfffffff0
call fcn.10147587
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
inc edx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jne 0x10196f57
mov eax, dword [esp + 0x60]
mov esi, dword [ebp + 0x1c]
cmp eax, ebx
mov eax, dword [ebp + 0x20]
je 0x1019710a
cmp eax, esi
jg 0x10197081
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10197081
mov ecx, 1
mov dword [esp + 0x38], ecx
jmp 0x101970b0
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov byte [eax], 0x4a
mov byte [eax + 3], bl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x38], esi
mov ecx, esi
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101970ce
mov edi, ebp
call fcn.101472c7
test eax, eax
mov ecx, dword [esp + 0x38]
je 0x101970ce
mov esi, 1
jmp 0x101970ef
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp ecx, ebx
mov dword [esp + 0x10], esi
jl 0x10197154
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jbe 0x10197154
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
jmp 0x10197154
cmp eax, esi
jg 0x10197123
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10197123
mov dword [esp + 0x10], 1
jmp 0x10197154
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x71
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10197167
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10197198
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x36
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x3c], ebx
je 0x101971ee
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xdc]
call fcn.10148ff7
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101971c5
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101971ee
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x15
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x30], ebx
jne 0x101972b9
cmp dword [esp + 0x54], ebx
je 0x10197346
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xdc]
mov edi, dword [esp + 0x14]
push ecx
push 3
push ebx
push edx
push eax
mov eax, dword [esp + 0x68]
mov ebx, edi
call fcn.101417e7
mov ecx, dword [esp + 0x34]
or ecx, eax
xor esi, esi
add esp, 0x14
cmp word [edi + 0x26], si
mov dword [esp + 0x20], ecx
jle 0x101972fc
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + esi*4], 0
jl 0x101972d7
mov eax, dword [esp + 0x20]
cmp eax, reloc.WINMM.dll_midiStreamOut
je 0x101972d7
cmp esi, 0x20
jge 0x10197272
mov edx, 1
mov ecx, esi
shl edx, cl
test eax, edx
jne 0x101972d7
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ebx
jg 0x10197289
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x101972ef
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x68]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
add edx, esi
mov byte [eax], 0xa
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x101972ef
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xdc]
push edx
push eax
call fcn.10152227
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x10197206
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
push esi
push ecx
lea ebx, [esi + eax]
push edi
mov eax, ebp
call fcn.1016add7
add esp, 0xc
movsx edx, word [edi + 0x26]
inc esi
cmp esi, edx
jl 0x10197249
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x10197346
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10197317
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10197346
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov byte [eax], 0xe
mov byte [eax + 3], cl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xdc]
mov ebx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x58]
push 1
push 1
push ecx
push edx
call fcn.101417e7
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x54], eax
movsx eax, word [ebx + 0x26]
mov ebx, dword [ebp + 0x1c]
lea esi, [eax + ecx - 1]
mov eax, dword [ebp + 0x20]
add esp, 0x14
cmp eax, ebx
jg 0x10197397
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101973c4
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x4c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
xor ebx, ebx
mov byte [eax], 0xa
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x101973c6
xor ebx, ebx
mov edi, dword [esp + 0x14]
xor esi, esi
cmp word [edi + 0x26], bx
mov dword [esp + 0x18], esi
jle 0x101974b3
movsx edx, word [edi + 0x24]
cmp esi, edx
je 0x101974a2
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + esi*4]
cmp eax, ebx
jl 0x10197425
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
lea esi, [ecx + edx]
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0xdc]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4]
call fcn.10148ff7
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jmp 0x101974a2
mov eax, dword [esp + 0x64]
test al, 1
je 0x10197441
cmp esi, 0x1f
jg 0x10197441
mov ecx, esi
mov eax, 1
shl eax, cl
test dword [esp + 0x40], eax
je 0x101974a2
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x34], eax
jg 0x10197460
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x1019748f
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
add edx, esi
mov byte [eax], 0x1d
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x4c]
add eax, esi
push eax
push edi
push ebp
mov eax, esi
call fcn.10166cb7
add esp, 0xc
movsx ecx, word [edi + 0x26]
inc esi
cmp esi, ecx
mov dword [esp + 0x18], esi
jl 0x101973da
test byte [esp + 0x64], 1
je 0x10197642
movsx edx, word [edi + 0x26]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x40], edx
jg 0x101974d9
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10197506
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x4c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x40]
mov byte [eax], 0x1e
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [esp + 0x14]
push ebp
mov eax, esi
call fcn.1014a3a7
mov edi, dword [esp + 0x58]
add esp, 4
cmp edi, ebx
je 0x1019756b
cmp byte [edi + 8], 0x6b
jne 0x10197564
cmp byte [edi + 9], 1
jne 0x10197564
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0xe4]
push edx
call fcn.10141717
add esp, 4
test eax, eax
je 0x10197564
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0xe0]
push ecx
push edx
push esi
push edi
push eax
call fcn.10198c77
add esp, 0x18
mov edi, dword [edi + 0x20]
cmp edi, ebx
jne 0x1019751d
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1019757e
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101975af
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x36
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edx, dword [esp + 0x14]
xor esi, esi
cmp word [edx + 0x26], bx
jle 0x10197642
mov edi, edx
lea ebx, [ebx]
mov eax, dword [esp + 0x2c]
cmp dword [eax + esi*4], ebx
jge 0x10197639
movsx ecx, word [edi + 0x24]
cmp esi, ecx
je 0x10197639
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x40], eax
jg 0x101975f7
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x10197626
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x4c]
inc ecx
mov dword [ebp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
add edx, esi
mov byte [eax], 0x1d
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x4c]
add eax, esi
push eax
push edi
push ebp
mov eax, esi
call fcn.10166cb7
add esp, 0xc
movsx ecx, word [edi + 0x26]
inc esi
cmp esi, ecx
jl 0x101975c7
cmp dword [esp + 0x6c], ebx
jne 0x101977eb
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0xec]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push ebx
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x34]
neg ecx
push 1
sbb ecx, ecx
and ecx, edi
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0xf4]
push eax
push ecx
push esi
push edx
call fcn.1017e887
mov eax, dword [esp + 0x58]
add esp, 0x28
cmp eax, ebx
je 0x101976aa
mov eax, dword [esp + 0xdc]
push ebx
push edi
push esi
push eax
call fcn.1018cd27
add esp, 0x10
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101976cc
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x101976c8
mov edi, 1
mov dword [esp + 0x20], edi
jmp 0x101976fb
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edi
mov byte [eax], 0x36
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x20], esi
mov edi, esi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xdc]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
call fcn.1016e687
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ebx
jne 0x10197727
cmp dword [esp + 0x3c], ebx
je 0x10197767
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1019773e
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x20]
jne 0x10197767
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x3b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp edi, ebx
jl 0x1019777c
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jbe 0x1019777c
mov ecx, dword [ebp + 4]
lea edx, [edi + edi*4]
mov dword [ecx + edx*4 + 8], eax
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x1019779f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xdc]
push edx
push ebx
push eax
push ecx
call fcn.1018cd27
add esp, 0x10
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push 1
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0xf0]
push ecx
push edx
push eax
call fcn.1015b4c7
add esp, 0x20
cmp esi, ebx
je 0x101977eb
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xe4]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0xdc]
push ecx
push edx
call fcn.1015ab07
add esp, 8
mov eax, dword [esp + 0x48]
test byte [eax + 0x18], 0x10
je 0x10197844
mov ecx, dword [esp + 0xdc]
cmp dword [ecx + reloc.WINMM.dll_midiStreamOut], ebx
jne 0x10197844
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10197817
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10197844
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x5c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x14
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [esp + 0x54]
cmp edi, ebx
mov esi, dword [esp + 0x10]
je 0x101978a5
lea esp, [esp]
cmp byte [edi + 8], 0x6b
jne 0x1019789e
cmp byte [edi + 9], 2
jne 0x1019789e
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0xe4]
push edx
call fcn.10141717
add esp, 4
test eax, eax
je 0x1019789e
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push esi
push eax
mov eax, dword [esp + 0xe4]
push ecx
push edx
push edi
push eax
call fcn.10198c77
add esp, 0x18
mov edi, dword [edi + 0x20]
cmp edi, ebx
jne 0x10197857
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x40], eax
jg 0x101978c0
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101978e5
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp esi, ebx
jl 0x101978fa
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jbe 0x101978fa
mov edx, dword [ebp + 4]
lea ecx, [esi + esi*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
je 0x1019797c
cmp dword [esp + 0x58], ebx
jne 0x10197920
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
cmp dword [ecx + edx*4], ebx
jle 0x10197968
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10197933
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10197964
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x18]
lea edx, [edx + ecx + 1]
mov byte [eax], 0x2d
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
inc edx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jne 0x1019790d
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1019798f
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101979b8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x2d
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0xdc]
cmp byte [eax + 0x12], bl
jne 0x101979d5
cmp dword [eax + reloc.WINMM.dll_midiStreamOut], ebx
jne 0x101979d5
push eax
call fcn.1015b0c7
add esp, 4
mov eax, dword [esp + 0x48]
test byte [eax + 0x18], 0x10
je 0x10197d9f
mov ecx, dword [esp + 0xdc]
mov eax, dword [ecx + reloc.WINMM.dll_midiStreamOut]
test eax, eax
jne 0x10197d9f
mov edx, ecx
mov al, byte [edx + 0x12]
test al, al
jne 0x10197d9f
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10197a18
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10197a47
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x5c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x10
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, 1
mov ebx, ebp
call fcn.1014f507
mov eax, dword [ebp]
mov cl, byte [eax + 0x38]
test cl, cl
jne 0x10197d9f
mov ebp, dword [ebp + 0x10]
mov ebx, dword [ebp]
xor esi, esi
cmp ebx, esi
je 0x10197a72
mov eax, dword [ebx + 0x50]
jmp 0x10197a77
mov eax, 0x3b9aca00
xor edi, edi
cmp eax, esi
mov dword [esp + 0x10], edi
jl 0x10197a9a
lea ebx, [ebx]
mov cl, byte [edi + 0x1018aa04]
test cl, cl
je 0x10197a96
inc edi
cmp edi, eax
jle 0x10197a87
mov dword [esp + 0x10], edi
xor ecx, ecx
cmp ecx, 0x100934f0
mov dword [esp + 0x34], 0x202
jne 0x10197c1a
xor ecx, ecx
mov cx, word [ebp + 0x1c]
test ecx, 0x2460
je 0x10197bfb
test ch, 0x20
je 0x10197b3e
mov edx, dword [ebp + 0x10]
cmp edx, esi
je 0x10197b30
mov esi, dword [edx + 0x14]
test esi, esi
je 0x10197b30
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov dword [esp + 0x98], edx
lea edx, [esp + 0x98]
push edx
mov word [esp + 0xc0], 1
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xcc], ebp
call esi
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp]
add esp, 4
call fcn.101394e7
mov ecx, 0xa
lea esi, [esp + 0xa0]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
push ebp
call fcn.10147047
add esp, 4
jmp 0x10197bfb
test ch, 4
je 0x10197b5b
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x10197b5b
mov ecx, dword [ebp + 4]
push ecx
call eax
add esp, 4
mov dword [ebp + 0x20], esi
jmp 0x10197bfb
test cl, 0x20
je 0x10197b94
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x10197b79
mov ecx, dword [esi + 4]
mov edi, dword [eax]
call fcn.101394e7
test edi, edi
mov eax, edi
jne 0x10197b69
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esi], eax
mov word [esi + 0x18], ax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0x1a], 1
jmp 0x10197bfb
test cl, 0x40
je 0x10197bfb
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
mov dword [eax + 4], edx
mov dword [ecx + 0xa4], eax
test byte [ebp + 0x1c], 0x20
je 0x10197be5
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x10197bcc
mov ecx, dword [esi + 4]
mov edi, dword [eax]
call fcn.101394e7
test edi, edi
mov eax, edi
jne 0x10197bbc
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esi], eax
mov word [esi + 0x18], ax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0x1a], 1
xor eax, eax
mov ax, word [ebp + 0x1c]
mov byte [ebp + 0x1e], 5
and eax, 0xbe01
or eax, 1
mov word [ebp + 0x1c], ax
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp]
call fcn.101394e7
mov eax, 0x1018aa04
mov dword [ebp + 4], eax
mov dword [ebp + 0x20], 0
jmp 0x10197d88
xor ecx, ecx
mov cx, word [ebp + 0x1c]
test ecx, 0x2460
je 0x10197d69
test ch, 0x20
je 0x10197ca8
mov edx, dword [ebp + 0x10]
cmp edx, esi
je 0x10197c9a
mov esi, dword [edx + 0x14]
test esi, esi
je 0x10197c9a
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x98]
push ecx
mov word [esp + 0xc0], 1
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xcc], ebp
mov dword [esp + 0x9c], edx
call esi
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp]
add esp, 4
call fcn.101394e7
mov ecx, 0xa
lea esi, [esp + 0xa0]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
push ebp
call fcn.10147047
add esp, 4
jmp 0x10197d69
test ch, 4
je 0x10197cc5
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x10197cc5
mov edx, dword [ebp + 4]
push edx
call eax
add esp, 4
mov dword [ebp + 0x20], esi
jmp 0x10197d69
test cl, 0x20
je 0x10197d02
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x10197ce7
lea esp, [esp]
mov ecx, dword [esi + 4]
mov edi, dword [eax]
call fcn.101394e7
test edi, edi
mov eax, edi
jne 0x10197cd7
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esi], eax
mov word [esi + 0x18], ax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0x1a], 1
jmp 0x10197d69
test cl, 0x40
je 0x10197d69
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
mov dword [eax + 4], edx
mov dword [ecx + 0xa4], eax
test byte [ebp + 0x1c], 0x20
je 0x10197d53
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x10197d3a
mov ecx, dword [esi + 4]
mov edi, dword [eax]
call fcn.101394e7
test edi, edi
mov eax, edi
jne 0x10197d2a
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esi], eax
mov word [esi + 0x18], ax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0x1a], 1
xor eax, eax
mov ax, word [ebp + 0x1c]
mov byte [ebp + 0x1e], 5
and eax, 0xbe01
or eax, 1
mov word [ebp + 0x1c], ax
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp]
call fcn.101394e7
xor eax, eax
mov dword [ebp + 4], 0x1018aa04
mov dword [ebp + 0x20], eax
mov dword [esp + 0x34], 0xa02
mov cx, word [esp + 0x34]
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x18], edi
mov word [ebp + 0x1c], cx
mov byte [ebp + 0x1f], 1
mov byte [ebp + 0x1e], 3
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x70]
cmp ecx, eax
je 0x10197db4
mov edx, dword [esp + 0x6c]
mov dword [ecx + reloc.WINMM.dll_midiStreamOut], edx
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, esi
call fcn.101394e7
mov eax, dword [esp + 0x28]
mov ecx, esi
call fcn.101394e7
mov eax, dword [esp + 0xdc]
push eax
call fcn.10140537
mov ecx, dword [esp + 0xe4]
push ecx
push esi
call fcn.10148d07
mov edx, dword [esp + 0xf0]
push edx
push esi
call fcn.10148957
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0xc8
ret