Function at 0x102fa9c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100392f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x227c
call fcn.1030cde0
mov eax, dword [0x10046638]
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
mov esi, 0xf
xor edi, edi
push 0x1003a9b4
lea ecx, [esp + 0x2c]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
call fcn.102eee00
mov eax, dword [ebx]
push edi
push 0x100451b8
push 0x100451a0
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edi
call dword [eax + 0xc]
push eax
call fcn.1030bd56
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
jb 0x102faa68
mov edx, dword [esp + 0x28]
push edx
call fcn.10319193
add esp, 4
push edi
push 2
push 2
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
call dword [0x1003a578]
mov esi, eax
cmp esi, reloc.WINMM.dll_midiStreamOut
mov dword [esp + 0x1c], esi
jne 0x102faaa9
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x1003b50c
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
mov eax, 1
jmp 0x102faef7
push 4
lea edx, [esp + 0x18]
push edx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x28], edi
call dword [0x1003a5a0]
cmp eax, reloc.WINMM.dll_midiStreamOut
jne 0x102faade
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x1003b4fc
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
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edi
call dword [0x1003a5b8]
mov word [esp + 0x172], ax
push 0x10
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push esi
call dword [fcn.1003a5b4]
cmp eax, reloc.WINMM.dll_midiStreamOut
jne 0x102fab5b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x1003b4f0
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
push esi
call dword [fcn.1003a5a8]
mov eax, 1
jmp 0x102faef7
mov al, byte [ebx + 0x110]
test al, al
mov dword [ebx + 0x120], esi
je 0x102faef5
nop
call fcn.102fec80
mov cl, byte [eax + 0x84c]
test cl, cl
je 0x102faef5
xor eax, eax
mov ecx, 0x800
lea edi, reloc.WINMM.dll_midiStreamOut
rep stosd dword es:[edi], eax
lea edx, [esp + 0x20]
push edx
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push 0
push 0x5c0
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push esi
mov dword [esp + 0x38], 0x10
call dword [0x1003a5b0]
test eax, eax
jle 0x102faee7
push 0xffffffffffffffff
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff3e0
push 0
push 0x3a
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 1
call fcn.102fef50
mov esi, eax
cmp esi, reloc.WINMM.dll_midiStreamOut
lea ecx, reloc.WINMM.dll_midiStreamOut
je 0x102faed3
push esi
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
call fcn.102ff410
push 0x1003b35c
mov ecx, eax
mov byte [esp + 0x2298], 2
call fcn.102ff0d0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x13], al
mov byte [esp + 0x2294], 1
call fcn.102fece0
mov al, byte [esp + 0x13]
test al, al
je 0x102fad91
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0x94]
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff470
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2298], 3
call fcn.102ff020
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2294], 1
call fcn.102fece0
push 0
push 0x2c
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fef50
mov esi, eax
push esi
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff410
push 0xffffffffffffffff
inc esi
push esi
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x22a0], 4
call fcn.102ff470
lea ecx, [ebx + 0x78]
mov byte [esp + 0x2294], 5
call fcn.102fed50
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff0d0
test al, al
je 0x102fad64
lea ecx, [ebx + 0xc4]
call fcn.102fed50
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff0d0
test al, al
je 0x102fad64
mov ecx, dword [ebx + reloc.WINMM.dll_midiStreamOut]
push ecx
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x1003b354
push edx
call fcn.102ff6c0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed30
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed50
mov edx, dword [esp + 0x2c]
push eax
push edx
call dword [fcn.1003a5ac]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2294], 4
call fcn.102fece0
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2294], 1
call fcn.102fece0
jmp 0x102faecc
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff410
push 0x1003b350
mov ecx, eax
mov byte [esp + 0x2298], 6
call fcn.102ff0d0
lea ecx, [esp + 0x40]
mov byte [esp + 0x13], al
mov byte [esp + 0x2294], 1
call fcn.102fece0
mov al, byte [esp + 0x13]
test al, al
je 0x102faecc
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0xe0]
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102ff470
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2298], 7
call fcn.102ff020
lea ecx, [esp + 0xd8]
mov byte [esp + 0x2294], 1
call fcn.102fece0
mov edi, dword [ebx + reloc.WINMM.dll_midiStreamOut]
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.102fed50
push eax
call fcn.1030b4b0
add esp, 4
cmp eax, edi
jne 0x102faecc
xor esi, esi
cmp edi, esi
mov dword [esp + 0x14], esi
jbe 0x102faeb0
cmp dword [esp + 0x14], reloc.WINMM.dll_midiStreamOut
jbe 0x102fae60
push 0x64
call dword [0x1003a320]
mov dword [esp + 0x14], 0
mov eax, dword [ebx + reloc.WINMM.dll_midiStreamOut]
sub eax, esi
cmp eax, 0x5c0
jle 0x102fae74
mov eax, 0x5c0
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [ebx + reloc.WINMM.dll_midiStreamOut]
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
push eax
mov eax, dword [esp + 0x2c]
add edx, esi
push edx
push eax
call dword [fcn.1003a5ac]
test eax, eax
jle 0x102faeb0
mov ecx, dword [esp + 0x14]
add ecx, eax
add esi, eax
cmp esi, dword [ebx + reloc.WINMM.dll_midiStreamOut]
mov dword [esp + 0x14], ecx
jb 0x102fae46
cmp esi, dword [ebx + reloc.WINMM.dll_midiStreamOut]
jb 0x102faecc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x1003b4e0
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
call fcn.102fece0
mov esi, dword [esp + 0x1c]
mov al, byte [ebx + 0x110]
test al, al
jne 0x102fab70
xor eax, eax
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