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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003e07f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x231c
call fcn.10366402
mov eax, dword [0x1004d6f8]
push ebx
push esi
push edi
mov esi, ecx
push 0xb
xor ebx, ebx
push 0x10040b20
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.10343242
mov eax, dword [esi]
push ebx
push 0x1004c224
push 0x1004c1a0
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.10365378
mov edi, eax
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
jb 0x1034ddaa
mov edx, dword [esp + 0x50]
push edx
call fcn.103727b5
add esp, 4
mov eax, 0xf
push 0xb
push 0x10040988
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.10343242
mov eax, dword [esi]
push ebx
push 0x1004c1b8
push 0x1004c1a0
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.10365378
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 0x1034de2a
mov edx, dword [esp + 0x34]
push edx
call fcn.103727b5
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.10354fc2
mov edi, eax
cmp edi, reloc.WINMM.dll_midiStreamOut
jne 0x1034de6e
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1004156c
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x1034e7d9
push edi
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
mov ecx, esi
call fcn.103553b2
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.10355412
mov ecx, eax
mov byte [esp + 0x2334], 3
call fcn.10354d32
push eax
call fcn.10364ad2
mov edi, eax
add esp, 4
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + 0x10], edi
mov byte [esp + 0x2334], 2
call fcn.10354cc2
push ebx
push 2
push 2
call dword [0x1004059c]
mov esi, eax
cmp esi, reloc.WINMM.dll_midiStreamOut
jne 0x1034def9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x10041560
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x1034e7c2
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x2c], 0x100000
call dword [0x10040594]
cmp eax, reloc.WINMM.dll_midiStreamOut
jne 0x1034df32
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x10041550
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 [0x10040590]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov word [esp + 0x172], ax
call fcn.103552f2
cmp edi, 0xa
mov ebx, dword [0x10040588]
mov byte [esp + 0x2334], 4
jg 0x1034e072
mov edi, 1
mov eax, dword [esp + 0x10]
lea ecx, [edi + eax]
push ecx
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x1004154c
push edx
call fcn.10355762
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.103557c2
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 5
call fcn.10355002
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354d32
push eax
call dword [0x100405ac]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.10354d32
mov ecx, dword [ebp + 8]
push eax
call fcn.10354d32
push eax
push 0x1004153c
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x2000
push edx
call fcn.10342352
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.10040330]
push eax
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
push esi
call ebx
inc edi
cmp edi, 0x14
jle 0x1034df95
jmp 0x1034e339
cmp edi, 0xf5
jl 0x1034e16e
dec edi
mov dword [esp + 0x10], 0x14
jmp 0x1034e092
push edi
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x1004154c
push eax
call fcn.10355762
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.103557c2
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 6
call fcn.10355002
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354d32
push eax
call dword [0x100405ac]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.10354d32
mov ecx, dword [ebp + 8]
push eax
call fcn.10354d32
push eax
push 0x1004153c
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x2000
push eax
call fcn.10342352
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.10040330]
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 0x1034e092
jmp 0x1034e339
mov edi, 1
mov ecx, dword [esp + 0x10]
lea edx, [edi + ecx]
push edx
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x1004154c
push eax
call fcn.10355762
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.103557c2
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 7
call fcn.10355002
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354d32
push eax
call dword [0x100405ac]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.10354d32
mov ecx, dword [ebp + 8]
push eax
call fcn.10354d32
push eax
push 0x1004153c
lea eax, reloc.WINMM.dll_midiStreamOut
push 0x2000
push eax
call fcn.10342352
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.10040330]
push eax
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push esi
call ebx
inc edi
cmp edi, 0xa
jle 0x1034e173
mov edi, dword [esp + 0x10]
dec edi
mov dword [esp + 0x10], 0xa
jmp 0x1034e262
push edi
lea ecx, reloc.WINMM.dll_midiStreamOut
push 0x1004154c
push ecx
call fcn.10355762
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.103557c2
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 8
call fcn.10355002
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354d32
push eax
call dword [0x100405ac]
mov ecx, dword [ebp + 0xc]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
call fcn.10354d32
mov ecx, dword [ebp + 8]
push eax
call fcn.10354d32
push eax
push 0x1004153c
lea ecx, reloc.WINMM.dll_midiStreamOut
push 0x2000
push ecx
call fcn.10342352
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.10040330]
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 0x1034e262
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], 1
call dword [fcn.100402ac]
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 [int.100405a8]
test eax, eax
jle 0x1034e454
jmp 0x1034e382
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 [0x10040584]
push 5
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10355382
push 0x10041534
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 9
call fcn.103550b2
test al, al
jne 0x1034e474
call dword [fcn.100402ac]
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
ja 0x1034e77f
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.10354cc2
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea ecx, [esp + 0x74]
push ecx
push 0
call dword [int.100405a8]
test eax, eax
jg 0x1034e382
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x10041524
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
push esi
call dword [fcn.100405cc]
jmp 0x1034e7ae
mov edx, dword [esp + reloc.WINMM.dll_midiStreamOut]
push 0xffffffffffffffff
push edx
call dword [0x10040598]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10355382
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2338], 0xa
call fcn.10355022
push 0xffffffffffffffff
push 5
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10355412
mov ecx, eax
mov byte [esp + 0x2334], 0xb
call fcn.10354d32
push eax
call fcn.10364ad2
mov edi, eax
add esp, 4
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + 0x10], edi
mov byte [esp + 0x2334], 0xa
call fcn.10354cc2
push edi
push 0x1004151c
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x2000
push edx
call fcn.10342352
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.10040330]
push eax
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push esi
call ebx
test eax, eax
jle 0x1034e709
push edi
call fcn.103727ba
mov edi, eax
add esp, 4
test edi, edi
je 0x1034e71f
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x1034e63d
call dword [fcn.100402ac]
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
ja 0x1034e735
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
lea edx, [esp + 0x74]
push edx
push 0
call dword [int.100405a8]
test eax, eax
jle 0x1034e748
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 [0x10040584]
mov ebx, eax
test ebx, ebx
jg 0x1034e5d5
call dword [0x100405a4]
jmp 0x1034e62f
mov eax, dword [esp + reloc.WINMM.dll_midiStreamOut]
push 0xffffffffffffffff
push eax
call dword [0x10040598]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10355382
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 0xc
call fcn.10354d32
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.103550b2
test al, al
je 0x1034e61b
add dword [esp + 0x1c], ebx
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 0xa
call fcn.10354cc2
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x1c], ecx
jl 0x1034e56a
mov ecx, dword [ebp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
call fcn.10354d32
push eax
call dword [fcn.10040344]
mov ebx, eax
cmp ebx, reloc.WINMM.dll_midiStreamOut
je 0x1034e680
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push ebx
call dword [fcn.100402b0]
push ebx
call dword [fcn.10040358]
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.100405cc]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x1004150c
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 9
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 2
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
call fcn.10354cc2
mov al, 1
jmp 0x1034e7db
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x100414f8
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x1034e762
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x100414e8
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
jmp 0x1034e762
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x100414d4
push 4
push eax
call dword [ecx + 0x20]
jmp 0x1034e759
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x100414c4
push 4
push eax
call dword [edx + 0x20]
push edi
call fcn.103727b5
add esp, 0x10
push esi
call dword [fcn.100405cc]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 9
call fcn.10354cc2
jmp 0x1034e79a
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x100414d4
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
push esi
call dword [fcn.100405cc]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 4
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2334], 2
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
call fcn.10354cc2
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.10364a3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc