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

Disassembly:
sub esp, 0x8c
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
xor edx, edx
push ebx
xor ebx, ebx
mov dword [esp + 0x60], edx
push ebp
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x44], ebx
mov dword [esp + 0x68], edx
push esi
mov dword [esp + 0x70], edx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], reloc.WINMM.dll_midiStreamOut
mov dword [esp + 0x48], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x78], edx
jne 0x10193d7d
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x38], bl
jne 0x10193d7d
mov ecx, dword [esp + 0xa4]
cmp dword [ecx + 0x10], ebx
je 0x10193d7d
mov ebx, dword [esp + 0xa0]
mov eax, ecx
call fcn.1018ccd7
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x10193d7b
mov ebp, dword [esp + 0x44]
mov esi, dword [edi + 0x40]
mov ecx, ebp
call fcn.10140fa7
mov ecx, dword [edi]
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov edx, ebx
shl edx, 4
mov eax, dword [edx + eax]
push eax
mov eax, dword [esp + 0xa4]
push 0
push ecx
push 0x12
mov dword [esp + 0x34], ebx
call fcn.101508c7
add esp, 0x10
test eax, eax
jne 0x10193d7b
mov esi, dword [esp + 0xa0]
lea edx, [esp + 0x28]
push edx
push eax
push 0x69
push edi
mov eax, esi
call fcn.10141777
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
test ecx, ecx
setne al
push edi
push esi
mov dword [esp + 0x74], eax
call fcn.101928d7
add esp, 0x18
test eax, eax
jne 0x10193d7b
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, edi
mov eax, esi
call fcn.10151d47
add esp, 4
test eax, eax
jne 0x10193d7b
mov edi, esi
call fcn.101533f7
mov ebp, eax
test ebp, ebp
je 0x10193d7b
mov al, byte [esi + 0x12]
test al, al
jne 0x10192b76
or dword [ebp + 0x60], 0x10
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x10192b8d
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x10192b8d
xor eax, eax
jmp 0x10192b92
mov eax, 1
push eax
mov edi, ebx
mov eax, esi
call fcn.1017bb67
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x10192bd7
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xac]
push ebx
push edx
push edi
push esi
call fcn.1018d1d7
add esp, 0x10
test eax, eax
jne 0x10193cd5
mov esi, dword [esp + 0xa0]
push ebx
mov ebx, edi
mov edx, esi
call fcn.1014a477
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb0]
add esp, 4
test eax, eax
je 0x10192dcc
lea ecx, [esp + 0x6c]
push ecx
push eax
push esi
call fcn.10192057
add esp, 0xc
test eax, eax
jne 0x10193d7b
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xac]
inc edx
mov dword [esp + 0x30], edx
mov edx, dword [ecx]
mov dword [esp + 0x60], eax
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
cmp eax, ebx
jne 0x10192c57
mov ecx, dword [esp + 0x24]
push edi
push ecx
mov ecx, dword [esp + 0xa8]
xor eax, eax
call fcn.1015ac07
add esp, 8
test eax, eax
je 0x10192e68
mov edx, dword [esp + 0xa0]
mov edi, dword [edx + 0x48]
lea eax, [edi + 1]
mov dword [edx + 0x48], eax
mov eax, edx
mov dword [esp + 0x48], 1
mov dword [esp + 0x20], edi
call fcn.1013fda7
mov dword [esp + 0x2c], eax
mov eax, edx
call fcn.1013fda7
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x20], esi
jg 0x10192ca0
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10192cc9
mov edi, dword [esp + 0x20]
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 + 0x38]
mov byte [eax], 0x2a
mov byte [eax + 3], bl
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edx, dword [esp + 0x70]
push edx
push 4
mov eax, ebp
call fcn.101473f7
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push eax
push 0x1b
mov eax, ebp
call fcn.101473f7
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
push edx
push eax
push 0x1f
mov eax, ebp
call fcn.10147347
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 0x20
cmp eax, esi
jg 0x10192d1d
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10192d4a
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 + 0x20]
mov edx, dword [esp + 0x18]
mov byte [eax], 0x38
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
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push 0x39
mov eax, ebp
call fcn.10147347
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 0x10
cmp eax, esi
jg 0x10192d7a
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10192da3
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]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x14]
mov edx, ebp
call fcn.1013e6d7
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xa0]
call fcn.1013fdc7
mov esi, dword [esp + 0x18]
call fcn.1013fdc7
jmp 0x10192e68
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
test eax, eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x20], reloc.WINMM.dll_midiStreamOut
je 0x10192e1e
mov eax, dword [eax]
jmp 0x10192e20
xor eax, eax
xor edi, edi
test eax, eax
mov dword [esp + 0x38], eax
jle 0x10192e68
xor ebx, ebx
jmp 0x10192e37
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx + 8]
mov eax, dword [ebx + edx]
push eax
lea esi, [esp + 0x80]
call fcn.10161177
add esp, 4
test eax, eax
jne 0x10193d7b
mov eax, dword [esp + 0x38]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x10192e37
mov edi, dword [esp + 0x10]
test byte [edi + 0x2a], 0x10
je 0x10192e9a
movsx ecx, word [edi + 0x26]
test ecx, ecx
jle 0x10192e9a
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x1c]
add eax, 0x16
lea ecx, [ecx]
xor edx, edx
mov dl, byte [eax]
add eax, 0x18
shr edx, 1
and edx, 1
add esi, edx
dec ecx
jne 0x10192e87
jmp 0x10192e9e
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jne 0x10192ee8
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x10193042
movsx eax, word [edi + 0x26]
sub eax, esi
cmp ecx, eax
je 0x10193036
mov edi, dword [esp + 0xa0]
push ecx
push eax
mov eax, dword [esp + 0xac]
push 0
push eax
push 0x1018a65c
call fcn.1014d297
add esp, 0x14
jmp 0x10193d7b
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x38]
cmp eax, edx
je 0x10192f0e
mov edi, dword [esp + 0xa0]
push edx
push eax
push 0x1018a640
call fcn.1014d297
add esp, 0xc
jmp 0x10193d7b
xor eax, eax
test edx, edx
jle 0x10192f25
or edx, reloc.WINMM.dll_midiStreamOut
mov esi, dword [ecx]
mov dword [esi + eax*8 + 4], edx
mov esi, dword [ecx + 4]
inc eax
cmp eax, esi
jl 0x10192f17
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x10193042
mov ecx, dword [esp + 0x10]
movsx ebx, word [ecx + 0x26]
xor esi, esi
test ebx, ebx
jle 0x10192fa1
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*8]
lea eax, [eax + ecx*8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [edi]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.101397b7
add esp, 8
test eax, eax
je 0x10192f86
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x10192f68
jmp 0x10192fa1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], esi
movsx edx, word [ecx + 0x24]
cmp esi, edx
jne 0x10192fa1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
movsx edx, word [ecx + 0x26]
cmp esi, edx
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0xb0]
jl 0x10192ff7
mov eax, dword [ebx]
mov esi, dword [eax + edi*8]
push 0x10187534
push esi
call fcn.101397b7
add esp, 8
test eax, eax
je 0x10192ff3
push 0x1018752c
push esi
call fcn.101397b7
add esp, 8
test eax, eax
je 0x10192ff3
push 0x10187528
push esi
call fcn.101397b7
add esp, 8
test eax, eax
jne 0x10193009
mov dword [esp + 0x3c], edi
mov eax, dword [ebx + 4]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x10192f38
jmp 0x10193042
mov ecx, dword [ebx]
mov edx, dword [ecx + edi*8]
mov eax, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
push edx
push 0
push eax
push 0x1018a620
call fcn.1014d297
add esp, 0x10
mov byte [edi + 0x11], 1
jmp 0x10193d7b
test ecx, ecx
jle 0x10193042
movsx ecx, word [edi + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x44]
test byte [edx + 0x18], 0x10
mov ebx, dword [esp + 0xa0]
je 0x1019309f
mov ecx, dword [ebx + 0x4c]
inc ecx
mov eax, ecx
mov dword [ebx + 0x4c], ecx
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x50], eax
cmp dword [ebp + 0x20], esi
jg 0x10193073
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1019309f
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 edx, dword [esp + 0x50]
xor ecx, ecx
mov byte [eax], 7
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
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x101930f6
mov eax, dword [ebx + 0x48]
push 0x28
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
push ebx
call fcn.10164577
mov esi, dword [esp + 0x50]
mov edi, eax
add esp, 0xc
lea ecx, [edi*4 + 4]
call fcn.10143be7
test eax, eax
mov dword [esp + 0x64], eax
je 0x10193d7b
xor ecx, ecx
test edi, edi
jle 0x101930f6
jmp 0x101930e7
mov edx, dword [ebx + 0x4c]
inc edx
mov dword [ebx + 0x4c], edx
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x101930e7
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10193118
mov eax, dword [esp + 0x20]
push eax
push 0x48
mov eax, ebp
call fcn.101473f7
mov ecx, dword [ebp + 0x1c]
add esp, 8
mov dword [esp + 0x54], ecx
jmp 0x10193146
mov eax, dword [esp + 0xac]
test eax, eax
je 0x1019314a
mov edx, dword [esp + 0x70]
push edx
push 4
mov eax, ebp
call fcn.101473f7
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
push eax
push 0x1b
mov eax, ebp
call fcn.101473f7
add esp, 0x10
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x4c]
movsx esi, word [edx + 0x26]
lea ecx, [eax + 1]
lea eax, [esi + eax + 1]
mov dword [ebx + 0x4c], eax
test byte [edx + 0x2a], 0x10
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ecx
je 0x10193176
inc ecx
inc eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0x4c], eax
inc ecx
mov eax, ebp
mov dword [esp + 0x24], ecx
call fcn.10147467
mov dword [esp + 0x2c], eax
test byte [esp + 0x28], 1
je 0x101934a4
mov ecx, dword [esp + 0x10]
movsx eax, word [ecx + 0x26]
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 0x3c]
mov ebx, dword [ecx + 0x40]
inc eax
cmp eax, edx
jg 0x101931b8
lea esi, [eax + ebx]
sub edx, eax
mov dword [ecx + 0x40], esi
mov dword [ecx + 0x3c], edx
jmp 0x101931c3
mov edx, dword [ecx + 0x4c]
add eax, edx
lea ebx, [edx + 1]
mov dword [ecx + 0x4c], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jge 0x1019320f
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101931e2
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101932c4
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
xor ecx, ecx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 4], reloc.WINMM.dll_midiStreamOut
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x101932c4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x1019322c
mov ecx, dword [esp + 0x20]
push ebx
push eax
push ecx
push 0x1d
mov eax, ebp
call fcn.10147347
add esp, 0x10
jmp 0x1019324e
mov eax, dword [esp + 0x3c]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0xa0]
mov esi, ebx
call fcn.10148ff7
push ebx
push 0x4a
mov eax, ebp
call fcn.101473f7
mov esi, dword [ebp + 0x1c]
mov ecx, eax
mov eax, dword [ebp + 0x20]
add esp, 8
cmp eax, esi
mov dword [esp + 0x28], ecx
jg 0x1019327a
mov edi, ebp
call fcn.101472c7
test eax, eax
mov ecx, dword [esp + 0x28]
jne 0x101932a2
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 4], reloc.WINMM.dll_midiStreamOut
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
test ecx, ecx
jl 0x101932b7
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jbe 0x101932b7
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
push ebx
push 0x15
mov eax, ebp
call fcn.101473f7
add esp, 8
mov eax, dword [esp + 0x10]
cmp word [eax + 0x26], 0
mov dword [esp + 0x14], 0
jle 0x101933f2
mov dword [esp + 0x18], 0
lea esp, [esp]
mov eax, dword [esp + 0xb0]
test eax, eax
mov edx, eax
jne 0x1019333c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x1019330f
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x10193318
test edx, edx
je 0x1019335c
cmp esi, dword [edx + 4]
jl 0x1019335c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [edx + eax + 4]
mov ecx, dword [esp + 0xa0]
lea esi, [ebx + edi + 1]
call fcn.10148ff7
jmp 0x101933d8
mov ecx, dword [edx + 4]
xor esi, esi
test ecx, ecx
jle 0x101932f8
mov eax, dword [edx]
mov edi, dword [esp + 0x14]
add eax, 4
cmp dword [eax], edi
je 0x101932fc
inc esi
add eax, 8
cmp esi, ecx
jl 0x1019334e
jmp 0x101932fc
test eax, eax
je 0x101933b4
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x28], eax
jg 0x1019337f
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x101933d8
mov eax, dword [esp + 0x28]
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 ecx, dword [esp + 0x20]
lea edx, [ebx + edi + 1]
mov byte [eax], 0x1d
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x101933d8
mov edx, dword [esp + 0xa8]
mov edx, dword [edx + 8]
lea eax, [esi + esi*4]
mov eax, dword [edx + eax*4]
push eax
mov eax, dword [esp + 0xa4]
lea ecx, [ebx + edi + 1]
call fcn.10149097
add esp, 4
add dword [esp + 0x18], 0x18
mov ecx, dword [esp + 0x10]
movsx edx, word [ecx + 0x26]
inc edi
cmp edi, edx
mov dword [esp + 0x14], edi
jl 0x101932e7
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x10193451
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x26]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x28], ecx
jg 0x10193419
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193444
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x28]
lea ecx, [ebx + 1]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x1e
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x10]
push ebp
call fcn.1014a3a7
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
movsx edx, word [edi + 0x26]
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0xa0]
push eax
push ecx
mov ecx, dword [esp + 0x54]
mov eax, ebx
sub eax, edx
dec eax
push eax
push edi
push 1
push 0
push 0x69
push ecx
push esi
call fcn.10198d77
movsx edi, word [edi + 0x26]
inc edi
push ebx
mov eax, edi
call fcn.1013fb57
mov eax, dword [esi + 0x3c]
add esp, 0x28
cmp edi, eax
jle 0x101934a4
mov eax, esi
mov dword [eax + 0x3c], edi
mov dword [eax + 0x40], ebx
mov eax, dword [esp + 0x5c]
xor ebx, ebx
cmp eax, ebx
jne 0x10193a67
mov edx, dword [esp + 0x10]
test byte [edx + 0x2a], 0x10
je 0x101934fa
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101934cf
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101934fa
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x30]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0xa
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
jl 0x10193692
cmp dword [esp + 0x48], ebx
je 0x10193528
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push esi
push ecx
push eax
push 0x1d
mov eax, ebp
call fcn.10147347
add esp, 0x10
jmp 0x101935f1
cmp dword [esp + 0xac], ebx
je 0x1019357b
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1019354c
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101935ed
mov ecx, dword [esp + 0x3c]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
mov esi, dword [esp + 0x1c]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x60]
add edx, ecx
mov byte [eax], 0xf
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
jmp 0x101935f1
mov esi, dword [esp + 0x1c]
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + eax*4]
mov ecx, dword [esp + 0xa0]
call fcn.10148ff7
mov ecx, dword [ebp]
mov eax, dword [ebp + 0x1c]
mov dl, byte [ecx + 0x38]
dec eax
test dl, dl
je 0x101935b0
mov eax, 0x101c83c8
jmp 0x101935bd
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
cmp eax, ebx
je 0x101935f1
cmp byte [eax], 0xa
jne 0x101935f1
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x2a], 0x10
jne 0x101935f1
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x68], 1
mov byte [eax], 0x38
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
jmp 0x10193701
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test byte [edx + 0x2a], 0x10
jne 0x10193647
push esi
push 0x4a
mov eax, ebp
call fcn.101473f7
mov ecx, dword [esp + 0x48]
mov edi, eax
mov eax, dword [esp + 0x3c]
push eax
push esi
push ecx
push 0x38
mov eax, ebp
call fcn.10147347
add esp, 0x18
cmp edi, ebx
jl 0x10193681
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jbe 0x10193681
mov ecx, dword [ebp + 4]
lea edx, [edi + edi*4]
mov dword [ecx + edx*4 + 8], eax
push esi
push 0x15
mov eax, ebp
call fcn.101473f7
add esp, 8
xor ebx, ebx
jmp 0x10193701
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ebx
jg 0x1019365a
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193681
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
add ebx, 2
xor ecx, ecx
mov byte [eax], 0x49
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
push esi
push 0x15
mov eax, ebp
call fcn.101473f7
add esp, 8
xor ebx, ebx
jmp 0x10193701
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x2a], 0x10
je 0x101936d8
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101936af
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101936fd
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
mov esi, dword [esp + 0x1c]
lea eax, [eax + edx*4]
mov byte [eax], 0xa
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
jmp 0x10193701
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
push ecx
push esi
push edx
push 0x38
mov eax, ebp
call fcn.10147347
add esp, 0x10
mov dword [esp + 0x68], 1
jmp 0x10193701
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
push esi
push eax
mov eax, dword [esp + 0xa8]
call fcn.1014a4e7
mov edi, dword [esp + 0x18]
add esp, 8
cmp word [edi + 0x26], bx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
jle 0x101938a3
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x24]
mov edi, dword [esp + 0x14]
cmp edi, ecx
mov edx, dword [esp + 0xb0]
jne 0x1019378f
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193766
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193876
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
xor ecx, ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0xa
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x10193876
test edx, edx
jne 0x101937ce
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x18]
test byte [ecx + esi + 0x16], 2
mov ecx, dword [esp + 0x1c]
je 0x101937c8
inc ecx
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [edx + eax + 4]
mov ecx, dword [esp + 0xa0]
mov esi, ebx
call fcn.10148ff7
jmp 0x10193876
mov esi, edi
sub esi, ecx
jmp 0x101937ec
mov ecx, dword [edx + 4]
xor esi, esi
test ecx, ecx
jle 0x101937f0
mov eax, dword [edx]
add eax, 4
cmp dword [eax], edi
je 0x101937e8
inc esi
add eax, 8
cmp esi, ecx
jl 0x101937dc
mov eax, dword [esp + 0x10]
test esi, esi
jl 0x101937aa
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x101937aa
test edx, edx
je 0x10193801
cmp esi, dword [edx + 4]
jge 0x101937aa
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1019381e
mov edx, dword [esp + 0x20]
push ebx
push esi
push edx
push 0x1d
mov eax, ebp
call fcn.10147347
add esp, 0x10
jmp 0x10193876
mov eax, dword [esp + 0xac]
test eax, eax
je 0x10193902
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ebx
jg 0x10193840
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193872
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x60]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x34]
add esi, edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0xf
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, 0x18
mov dword [esp + 0x18], edx
movsx edx, word [ecx + 0x26]
inc eax
inc ebx
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
jl 0x10193738
xor ebx, ebx
mov edi, ecx
test byte [edi + 0x2a], 0x10
je 0x101939e6
mov eax, dword [edi + 0x38]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x101938cb
mov ecx, dword [esp + 0x44]
cmp dword [eax], ecx
je 0x101938c7
mov eax, dword [eax + 0x18]
cmp eax, ebx
jne 0x101938bc
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
push esi
call fcn.1014acd7
movsx ebx, word [esi + 0x26]
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 4
add ebx, 2
cmp eax, esi
jg 0x10193925
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10193925
mov eax, 1
jmp 0x1019395a
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 8]
lea edx, [esi + esi*4]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0xa0]
mov esi, ebx
call fcn.10148ff7
jmp 0x10193876
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x30]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x8c
mov byte [eax + 3], 0
mov dword [eax + 4], 1
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, esi
mov esi, dword [ebp + 4]
mov edi, dword [ebp]
xor ebx, ebx
cmp esi, ebx
je 0x101939a6
mov cl, byte [edi + 0x38]
test cl, cl
jne 0x101939a6
cmp eax, ebx
jge 0x10193975
mov eax, dword [ebp + 0x1c]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.10147587
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x1019399c
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0
jmp 0x101939a6
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf6
inc dword [eax + 0xc]
mov edx, dword [esp + 0xb4]
cmp edx, 0x63
jne 0x101939b7
mov edx, 2
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x101939c8
mov eax, dword [ebp + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], dl
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx + reloc.WINMM.dll_midiStreamOut]
cmp eax, ebx
jne 0x101939db
mov eax, ecx
mov byte [eax + 0x18], 1
xor ebx, ebx
jmp 0x10193a67
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x38]
xor ecx, ecx
push eax
mov eax, dword [esp + 0x4c]
cmp esi, ebx
mov esi, dword [esp + 0x70]
setge cl
push ebx
push ecx
mov ecx, dword [esp + 0xb4]
push esi
push edx
push eax
push edi
push ecx
call fcn.1017e887
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0xc8]
push edx
push ebx
push edi
push eax
call fcn.1018cd27
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0xa0]
xor ecx, ecx
cmp eax, ebx
mov eax, dword [esp + 0x68]
sete cl
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0xe0]
push ebx
push esi
push eax
push ecx
push edi
push edx
call fcn.1015b4c7
add esp, 0x58
mov eax, dword [esp + 0x44]
test byte [eax + 0x18], 0x10
je 0x10193ab3
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193a84
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193ab3
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 byte [eax], 0x14
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x10193af1
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0x14]
movsx esi, word [edx + 0x26]
push ecx
mov ecx, dword [esp + 0x2c]
sub ecx, esi
sub ecx, 2
push ecx
push edx
mov edx, dword [esp + 0xb0]
push 2
push ebx
push 0x69
push eax
push edx
call fcn.10198d77
add esp, 0x24
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x10193b0a
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x1c]
sub eax, edx
mov dword [eax], ecx
cmp dword [esp + 0x48], ebx
je 0x10193bb3
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193b27
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193b56
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x20]
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 + 0x54]
mov byte [eax], 0x5f
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x58]
cmp eax, ebx
jl 0x10193b6f
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jbe 0x10193b6f
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193b86
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193c13
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x20]
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], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
jmp 0x10193c13
cmp dword [esp + 0xac], ebx
je 0x10193c13
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193bcf
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193bfa
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x54]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x58]
cmp eax, ebx
jl 0x10193c13
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jbe 0x10193c13
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
mov eax, dword [esp + 0x10]
test byte [eax + 0x2a], 0x10
jne 0x10193cd5
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x10193cd5
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193c40
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193c6d
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 edx, dword [esp + 0x40]
xor ecx, ecx
mov byte [eax], 0x2d
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x10193c6f
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
cmp eax, ecx
mov dword [esp + 0x24], eax
je 0x10193cd5
mov ebx, dword [esp + 0x40]
inc ebx
lea esp, [esp]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193c9a
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193cc3
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]
xor ecx, ecx
mov byte [eax], 0x2d
mov byte [eax + 3], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x10193cc5
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
inc ebx
cmp eax, ecx
mov dword [esp + 0x24], eax
jne 0x10193c87
mov esi, dword [esp + 0xa0]
mov al, byte [esi + 0x12]
test al, al
jne 0x10193cf6
mov eax, dword [esi + reloc.WINMM.dll_midiStreamOut]
test eax, eax
jne 0x10193cf6
push esi
call fcn.1015b0c7
add esp, 4
mov ecx, dword [esp + 0x44]
test byte [ecx + 0x18], 0x10
je 0x10193d7b
mov al, byte [esi + 0x12]
test al, al
jne 0x10193d7b
mov eax, dword [esi + reloc.WINMM.dll_midiStreamOut]
test eax, eax
jne 0x10193d7b
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10193d24
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10193d4f
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x50]
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 0x10193d7b
mov edx, dword [ebp + 0x10]
push 1
push 0xffffffffffffffff
xor eax, eax
mov ecx, 0x1018a610
call fcn.10156ff7
add esp, 8
xor ebx, ebx
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x44]
push ecx
call fcn.10140537
mov edx, dword [esp + 0xac]
push edx
push esi
call fcn.10148d07
mov edi, dword [esp + 0xb8]
add esp, 0xc
cmp edi, ebx
je 0x10193dbd
push edi
push esi
call fcn.10140fd7
add esp, 8
mov eax, edi
mov ecx, esi
call fcn.101394e7
mov ebp, dword [esp + 0xb0]
cmp ebp, ebx
je 0x10193dff
mov eax, dword [ebp + 4]
xor edi, edi
cmp eax, ebx
jle 0x10193dec
lea ebx, [ebx]
mov eax, dword [ebp]
mov eax, dword [eax + edi*8]
mov ecx, esi
call fcn.101394e7
mov eax, dword [ebp + 4]
inc edi
cmp edi, eax
jl 0x10193dd7
mov eax, dword [ebp]
mov ecx, esi
call fcn.101394e7
mov eax, ebp
mov ecx, esi
call fcn.101394e7
mov eax, dword [esp + 0x64]
mov ecx, esi
call fcn.101394e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret