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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003e32f
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 0x1034fbca
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 0x1034fc4a
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 0x1034fc8e
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x100416cc
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x103505f9
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 0x1034fd19
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x100416c0
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x103505e2
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 0x1034fd52
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x100416b0
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 0x3ef9
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 0x1034fe92
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 0x1034fdb5
jmp 0x10350159
cmp edi, 0xf5
jl 0x1034ff8e
dec edi
mov dword [esp + 0x10], 0x14
jmp 0x1034feb2
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 0x1034feb2
jmp 0x10350159
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 0x1034ff93
mov edi, dword [esp + 0x10]
dec edi
mov dword [esp + 0x10], 0xa
jmp 0x10350082
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 0x10350082
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 0x10350274
jmp 0x103501a2
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 0x10350294
call dword [fcn.100402ac]
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
ja 0x1035059f
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 0x103501a2
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x100416a4
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
push esi
call dword [fcn.100405cc]
jmp 0x103505ce
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 0x10350529
push edi
call fcn.103727ba
mov edi, eax
add esp, 4
test edi, edi
je 0x1035053f
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x1035045d
call dword [fcn.100402ac]
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
ja 0x10350555
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 0x10350568
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 0x103503f5
call dword [0x100405a4]
jmp 0x1035044f
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 0x1035043b
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 0x1035038a
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 0x103504a0
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 + reloc.WINMM.dll_midiStreamOut], edi
mov dword [eax + reloc.WINMM.dll_midiStreamOut], edx
call dword [fcn.100405cc]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x10041694
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 0x103505fb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x10041684
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
jmp 0x10350582
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x10041674
push 4
push eax
call dword [edx + 0x20]
add esp, 0xc
jmp 0x10350582
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x10041664
push 4
push eax
call dword [ecx + 0x20]
jmp 0x10350579
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x10041654
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 0x103505ba
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0x10041664
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