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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100396c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
mov eax, dword [0x10046638]
push ebx
push esi
push edi
push 0xb
mov esi, ecx
xor ebx, ebx
mov edi, 0xf
push 0x1003ac38
lea ecx, [esp + 0x38]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.102eee00
mov eax, dword [esi]
push ebx
push 0x10045224
push 0x100451a0
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ebx
call dword [eax + 0xc]
push eax
call fcn.1030bd56
mov esi, eax
mov eax, dword [esp + 0x5c]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + reloc.WINMM.dll_midiStreamOut], reloc.WINMM.dll_midiStreamOut
jb 0x102fd6d0
mov edx, dword [esp + 0x34]
push edx
call fcn.10319193
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
lea ecx, [esp + 0x78]
mov edi, eax
call fcn.102ff350
push 0xffffffffffffffff
push 0x1003b680
lea ecx, [esp + 0xd0]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 1
call fcn.102ff3e0
push 0xffffffffffffffff
push 0x1003b5f8
lea ecx, [esp + 0x120]
mov byte [esp + 0x2bc], 2
call fcn.102ff3e0
mov edx, dword [esi]
xor eax, eax
mov al, byte [edi + 0x38]
lea ecx, [esp + 0x78]
mov byte [esp + 0x2b4], 3
push eax
push ecx
lea eax, [esp + 0xd0]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
mov ecx, esi
call dword [edx + 0x14]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2b4], 2
call fcn.102fece0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x2b4], 1
call fcn.102fece0
lea ecx, [esp + 0x78]
call fcn.102fed40
test al, al
jne 0x102fdc2b
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push 0x60
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x2bc], 4
call fcn.102fed50
push eax
call fcn.10301280
mov ecx, dword [esp + 0x30]
add esp, 0xc
cmp ecx, ebx
je 0x102fdb23
mov edx, dword [esp + 0x28]
sub edx, ecx
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x102fdb23
call fcn.102fed30
test eax, eax
je 0x102fd8f0
xor eax, eax
mov ecx, 0x24
lea edi, reloc.WINMM.dll_midiStreamOut
rep stosd dword es:[edi], eax
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0x94
call dword [fcn.1003a2b8]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
push 0x2c
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x2bc], 5
call fcn.102fed50
push eax
call fcn.10301280
add esp, 0xc
xor edi, edi
mov dword [esp + 0x14], ebx
nop
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x102fd8c9
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x102fd8c9
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [edx + esi]
push eax
lea edx, [esp + 0x1c]
push edx
push 0x1003b678
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.102fed50
push eax
call fcn.1030ce1d
mov eax, dword [esp + reloc.WINMM.dll_midiStreamOut]
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp eax, ecx
jne 0x102fd8bb
mov ecx, dword [esp + 0x120]
cmp ecx, dword [esp + 0x1c]
je 0x102fd8df
mov eax, dword [esp + 0x14]
inc edi
add eax, 0x4c
mov dword [esp + 0x14], eax
jmp 0x102fd850
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 4
call fcn.102eef20
jmp 0x102fdb23
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 4
call fcn.102eef20
mov ecx, dword [esp + 0x24]
add ecx, 0x4c
call fcn.102fed30
test eax, eax
je 0x102fdc1a
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov ecx, dword [esp + 0x24]
push 0x2c
lea edx, [esp + 0x60]
add ecx, 0x4c
push edx
mov byte [esp + 0x2bc], 7
call fcn.102fed50
push eax
call fcn.10301280
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jmp 0x102fd950
mov esi, dword [esp + 0x60]
cmp esi, ebx
je 0x102fdaad
mov ecx, dword [esp + 0x64]
sub ecx, esi
mov eax, 0x6bca1af3
imul ecx
mov ecx, dword [esp + 0x14]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x102fdaad
mov eax, dword [esp + 0x18]
add esi, eax
push ebx
push 0x7c
mov ecx, esi
call fcn.102fef50
mov edi, eax
cmp edi, reloc.WINMM.dll_midiStreamOut
je 0x102fdbdf
push edi
lea ecx, [esp + 0xcc]
push ecx
mov ecx, esi
call fcn.102ff410
push 0xffffffffffffffff
inc edi
push edi
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
mov ecx, esi
mov byte [esp + 0x2c0], 8
call fcn.102ff470
lea ecx, [esp + 0xc8]
mov byte [esp + 0x2b4], 9
call fcn.102fed30
test eax, eax
je 0x102fdbb7
push 0x1003b664
lea ecx, [esp + 0xcc]
call fcn.102fed50
push eax
call dword [fcn.1003a328]
test eax, eax
jne 0x102fdb4f
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x13], 1
call fcn.102fed30
test eax, eax
je 0x102fda7b
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff350
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
mov byte [esp + 0x2b8], 0xa
call fcn.10301c80
add esp, 4
push ebx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed50
push eax
lea ecx, [esp + 0x120]
call fcn.102fefa0
cmp eax, reloc.WINMM.dll_midiStreamOut
jne 0x102fda5d
mov byte [esp + 0x13], bl
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2b4], 9
call fcn.102fece0
cmp byte [esp + 0x13], bl
je 0x102fdbb7
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2b4], 8
call fcn.102fece0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x2b4], 7
call fcn.102fece0
cmp byte [esp + 0x13], bl
jne 0x102fdbf8
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x102fdb01
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x1c], ecx
je 0x102fdb01
lea eax, [esp + 0x6c]
lea edx, [esp + 0x4c]
push eax
mov dword [esp + 0x70], 0x1003b4c8
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
call fcn.10301740
mov eax, dword [esp + 0x78]
add esp, 4
cmp eax, ebx
jne 0x102fdbf8
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2b4], 6
call fcn.102eef20
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b4], 4
call fcn.102fba20
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 1
call fcn.102eef20
lea ecx, [esp + 0x78]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], reloc.WINMM.dll_midiStreamOut
call fcn.102fece0
xor al, al
jmp 0x102fdc41
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fa400
lea ecx, [esp + 0xc8]
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2b8], 0xb
call fcn.102ff020
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff020
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x29c], bl
call fcn.102fd5a0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2b4], 9
call fcn.102fa450
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2b4], 8
call fcn.102fece0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x2b4], 7
call fcn.102fece0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
add eax, 0x4c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x102fd950
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2b4], 6
call fcn.102eef20
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b4], 4
call fcn.102fba20
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 1
call fcn.102eef20
lea ecx, [esp + 0x78]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], reloc.WINMM.dll_midiStreamOut
call fcn.102fece0
mov al, 1
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