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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100390ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x231c
call fcn.1030cde0
mov eax, dword [0x10046638]
push ebx
push esi
push edi
mov esi, ecx
push 0xb
xor ebx, ebx
push 0x1003ac38
lea ecx, [esp + 0x54]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.102eee00
mov eax, dword [esi]
push ebx
push 0x10045224
push 0x100451a0
push ebx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ebx
call dword [eax + 0xc]
push eax
call fcn.1030bd56
mov edi, eax
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
jb 0x102f91b8
mov edx, dword [esp + 0x50]
push edx
call fcn.10319193
add esp, 4
mov eax, 0xf
push 0xb
push 0x1003a9b4
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], 0
call fcn.102eee00
mov eax, dword [esi]
push ebx
push 0x100451b8
push 0x100451a0
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 1
call dword [eax + 0xc]
push eax
call fcn.1030bd56
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
jb 0x102f9238
mov edx, dword [esp + 0x34]
push edx
call fcn.10319193
add esp, 4
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], 0
call dword [eax + 0x3c]
lea esi, [eax + 0x4c]
push 0x2e
mov ecx, esi
call fcn.102fefe0
mov edi, eax
cmp edi, reloc.WINMM.dll_midiStreamOut
jne 0x102f927c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1003b434
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x102f9be7
push edi
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
mov ecx, esi
call fcn.102ff410
push 0xffffffffffffffff
inc edi
push edi
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
mov ecx, esi
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 2
call fcn.102ff470
mov ecx, eax
mov byte [esp + 0x2334], 3
call fcn.102fed50
push eax
call fcn.1030b4b0
mov edi, eax
add esp, 4
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + 0x10], edi
mov byte [esp + 0x2334], 2
call fcn.102fece0
push ebx
push 2
push 2
call dword [0x1003a578]
mov esi, eax
cmp esi, reloc.WINMM.dll_midiStreamOut
jne 0x102f9307
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1003b428
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x102f9bd0
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x2c], 0x100000
call dword [0x1003a5a0]
cmp eax, reloc.WINMM.dll_midiStreamOut
jne 0x102f9340
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1003b418
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
xor edx, edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
push 0x3ef8
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov word [esp + 0x174], 2
call dword [0x1003a5b8]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov word [esp + 0x172], ax
call fcn.102ff350
cmp edi, 0xa
mov ebx, dword [fcn.1003a5ac]
mov byte [esp + 0x2334], 4
jg 0x102f9480
mov edi, 1
mov eax, dword [esp + 0x10]
lea ecx, [edi + eax]
push ecx
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x1003b414
push edx
call fcn.102ff6c0
add esp, 0xc
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff720
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 5
call fcn.102ff020
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed50
push eax
call dword [0x1003a588]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.102fed50
mov ecx, dword [ebp + 8]
push eax
call fcn.102fed50
push eax
push 0x1003b404
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x2000
push edx
call fcn.102eded0
add esp, 0x14
push 0x10
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push 0
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
call dword [fcn.1003a304]
push eax
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
push esi
call ebx
inc edi
cmp edi, 0x14
jle 0x102f93a3
jmp 0x102f9747
cmp edi, 0xf5
jl 0x102f957c
dec edi
mov dword [esp + 0x10], 0x14
jmp 0x102f94a0
push edi
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x1003b414
push eax
call fcn.102ff6c0
add esp, 0xc
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff720
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 6
call fcn.102ff020
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed50
push eax
call dword [0x1003a588]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.102fed50
mov ecx, dword [ebp + 8]
push eax
call fcn.102fed50
push eax
push 0x1003b404
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x2000
push eax
call fcn.102eded0
add esp, 0x14
push 0x10
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
call dword [fcn.1003a304]
push eax
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push esi
call ebx
mov eax, dword [esp + 0x10]
dec edi
dec eax
mov dword [esp + 0x10], eax
jne 0x102f94a0
jmp 0x102f9747
mov edi, 1
mov ecx, dword [esp + 0x10]
lea edx, [edi + ecx]
push edx
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x1003b414
push eax
call fcn.102ff6c0
add esp, 0xc
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff720
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 7
call fcn.102ff020
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed50
push eax
call dword [0x1003a588]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.102fed50
mov ecx, dword [ebp + 8]
push eax
call fcn.102fed50
push eax
push 0x1003b404
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x2000
push eax
call fcn.102eded0
add esp, 0x14
push 0x10
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
call dword [fcn.1003a304]
push eax
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push esi
call ebx
inc edi
cmp edi, 0xa
jle 0x102f9581
mov edi, dword [esp + 0x10]
dec edi
mov dword [esp + 0x10], 0xa
jmp 0x102f9670
push edi
lea ecx, reloc.WINMM.dll_midiStreamOut
push 0x1003b414
push ecx
call fcn.102ff6c0
add esp, 0xc
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff720
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 8
call fcn.102ff020
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed50
push eax
call dword [0x1003a588]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.102fed50
mov ecx, dword [ebp + 8]
push eax
call fcn.102fed50
push eax
push 0x1003b404
lea ecx, reloc.WINMM.dll_midiStreamOut
push 0x2000
push ecx
call fcn.102eded0
add esp, 0x14
push 0x10
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
push 0
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
call dword [fcn.1003a304]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push esi
call ebx
mov eax, dword [esp + 0x10]
dec edi
dec eax
mov dword [esp + 0x10], eax
jne 0x102f9670
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], 1
call dword [0x1003a31c]
lea edx, [esp + 0x24]
push edx
push 0
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x74]
push eax
push 0
call dword [fcn.1003a584]
test eax, eax
jle 0x102f9862
jmp 0x102f9790
xor eax, eax
mov ecx, 0x800
lea edi, reloc.WINMM.dll_midiStreamOut
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
push 0x5c0
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push esi
mov dword [esp + 0x38], 0x10
call dword [0x1003a5b0]
push 5
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff3e0
push 0x1003b3fc
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 9
call fcn.102ff0d0
test al, al
jne 0x102f9882
call dword [0x1003a31c]
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
ja 0x102f9b8d
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.102fece0
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea ecx, [esp + 0x74]
push ecx
push 0
call dword [fcn.1003a584]
test eax, eax
jg 0x102f9790
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x1003b3ec
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
push esi
call dword [fcn.1003a5a8]
jmp 0x102f9bbc
mov edx, dword [esp + reloc.WINMM.dll_midiStreamOut]
push 0xffffffffffffffff
push edx
call dword [0x1003a59c]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff3e0
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 0xa
call fcn.102ff040
push 0xffffffffffffffff
push 5
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff470
mov ecx, eax
mov byte [esp + 0x2334], 0xb
call fcn.102fed50
push eax
call fcn.1030b4b0
mov edi, eax
add esp, 4
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + 0x10], edi
mov byte [esp + 0x2334], 0xa
call fcn.102fece0
push edi
push 0x1003b3e4
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x2000
push edx
call fcn.102eded0
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
call dword [fcn.1003a304]
push eax
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push esi
call ebx
test eax, eax
jle 0x102f9b17
push edi
call fcn.10319198
mov edi, eax
add esp, 4
test edi, edi
je 0x102f9b2d
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x102f9a4b
call dword [0x1003a31c]
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
ja 0x102f9b43
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
lea edx, [esp + 0x74]
push edx
push 0
call dword [fcn.1003a584]
test eax, eax
jle 0x102f9b56
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
push 0x5c0
add edx, edi
push edx
push esi
mov dword [esp + 0x38], 0x10
call dword [0x1003a5b0]
mov ebx, eax
test ebx, ebx
jg 0x102f99e3
call dword [0x1003a574]
jmp 0x102f9a3d
mov eax, dword [esp + reloc.WINMM.dll_midiStreamOut]
push 0xffffffffffffffff
push eax
call dword [0x1003a59c]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff3e0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 0xc
call fcn.102fed50
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff0d0
test al, al
je 0x102f9a29
add dword [esp + 0x1c], ebx
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 0xa
call fcn.102fece0
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x1c], ecx
jl 0x102f9978
mov ecx, dword [ebp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
call fcn.102fed50
push eax
call dword [fcn.1003a32c]
mov ebx, eax
cmp ebx, reloc.WINMM.dll_midiStreamOut
je 0x102f9a8e
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push ebx
call dword [fcn.1003a28c]
push ebx
call dword [fcn.1003a33c]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push esi
mov dword [eax + 0xcc], edi
mov dword [eax + 0xd0], edx
call dword [fcn.1003a5a8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1003b3d4
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 9
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 2
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
call fcn.102fece0
mov al, 1
jmp 0x102f9be9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1003b3c0
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x102f9b70
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x1003b3b0
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
jmp 0x102f9b70
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1003b39c
push 4
push eax
call dword [ecx + 0x20]
jmp 0x102f9b67
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x1003b38c
push 4
push eax
call dword [edx + 0x20]
push edi
call fcn.10319193
add esp, 0x10
push esi
call dword [fcn.1003a5a8]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 9
call fcn.102fece0
jmp 0x102f9ba8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x1003b39c
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
push esi
call dword [fcn.1003a5a8]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 2
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
call fcn.102fece0
xor al, al
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
mov dword fs:[0], ecx
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
call fcn.1030b41a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc