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

Disassembly:
push 0xffffffffffffffff
push 0x100139a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov eax, dword [reloc.WINMM.dll_waveOutUnprepareHeader]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x28], 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
push 0x10019198
lea ecx, [esp + 0x20]
mov byte [esp + 0xb8], 2
call fcn.00618022
push 0x10019164
lea ecx, [esp + 0x18]
call fcn.00618022
mov esi, 1
lea eax, [esp + 8]
push esi
push 0x10019160
push eax
mov dword [esp + 0x30], esi
call fcn.006178ea
mov edx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], esi
push ecx
push edx
push 0x80000001
call dword [0x10014004]
test eax, eax
jne 0x60b540
mov esi, dword [reloc.WINMM.dll_waveOutUnprepareHeader]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x60b540
push ebp
push edi
mov edx, dword [reloc.WINMM.dll_waveOutUnprepareHeader]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
mov byte [esp + 0xc8], 3
call fcn.00618087
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 4
call fcn.00617fd2
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], 3
call fcn.00617f7b
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push ecx
push 0x80000002
call dword [0x10014004]
test eax, eax
jne 0x60b4db
lea edx, [esp + 0x34]
lea eax, [esp + 0x50]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x10019154
push edx
mov dword [esp + 0x4c], 0x64
call esi
test eax, eax
jne 0x60b4db
mov ebp, dword [ebx]
push 0x94
call fcn.00617cda
mov edx, eax
lea edi, [esp + 0x44]
or ecx, reloc.WINMM.dll_waveOutUnprepareHeader
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, reloc.WINMM.dll_waveOutUnprepareHeader
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0xf]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x38], esi
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
mov dword [edx + 0x90], 0
je 0x60b4d9
mov eax, dword [ebp + 0x90]
test eax, eax
je 0x60b4d1
mov ebp, eax
mov eax, dword [ebp + 0x90]
test eax, eax
jne 0x60b4c5
mov dword [ebp + 0x90], edx
jmp 0x60b4db
mov dword [ebx], edx
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x10014000]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
inc eax
push eax
push 0x10019160
push edx
mov dword [esp + 0x38], eax
call fcn.006178ea
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 2
call fcn.00617f7b
mov esi, dword [reloc.WINMM.dll_waveOutUnprepareHeader]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push eax
push ecx
call esi
test eax, eax
je 0x60b3be
pop edi
pop ebp
mov edx, dword [esp + 0x10]
push edx
call dword [0x10014000]
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0xb4], 1
call fcn.00617f7b
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 0
call fcn.00617f7b
lea ecx, [esp + 8]
mov dword [esp + 0xb4], reloc.WINMM.dll_waveOutUnprepareHeader
call fcn.00617f7b
mov ecx, dword [esp + 0xac]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret