Function at 0x6372c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a6c60
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], vtable.kiwi::CDirectMusicBuffer.0
mov dword [ecx + 4], 1
mov dword [ecx + 8], 0
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ebp - 0x64], ecx
mov dword [ecx + 0x44], vtable.kiwi::CWaveFormat.0
mov dword [ecx + 0x48], 1
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x6c], 0
mov byte [ecx + 0x70], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], vtable.thread::CThread.0
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x80], vtable.thread::CEvent.0
mov dword [ecx + 0x84], 0
mov dword [ecx + 0x88], vtable.thread::CEvent.0
mov dword [ecx + 0x8c], 0
mov dword [ecx + 0x90], vtable.thread::CEvent.0
mov dword [ecx + 0x94], 0
lea edi, [ecx + 0x98]
mov byte [ebp - 4], 4
push 0x1c
mov dword [ebp - 0x5c], edi
mov dword [edi], vtable.thread::CCriticalSection.0
call fcn.0066bc56
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
lea eax, [esi + 4]
mov dword [esi], vtable.thread::CCriticalSection::CImpl.0
push eax
call ebx
mov dword [edi + 4], esi
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x60]
add edi, 0xa0
push 0x1c
mov dword [ebp - 0x5c], edi
mov dword [edi], vtable.thread::CCriticalSection.0
call fcn.0066bc56
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
lea eax, [esi + 4]
mov dword [esi], vtable.thread::CCriticalSection::CImpl.0
push eax
call ebx
mov dword [edi + 4], esi
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x60]
add edi, 0xa8
push 0x1c
mov dword [ebp - 0x5c], edi
mov dword [edi], vtable.thread::CCriticalSection.0
call fcn.0066bc56
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
lea eax, [esi + 4]
mov dword [esi], vtable.thread::CCriticalSection::CImpl.0
push eax
call ebx
mov dword [edi + 4], esi
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x60]
add edi, 0xb0
push 0x1c
mov dword [ebp - 0x5c], edi
mov dword [edi], vtable.thread::CCriticalSection.0
call fcn.0066bc56
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
lea eax, [esi + 4]
mov dword [esi], vtable.thread::CCriticalSection::CImpl.0
push eax
call ebx
mov dword [edi + 4], esi
mov byte [ebp - 4], 8
mov ebx, dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x637513
push eax
call esi
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x84], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
mov dword [ebx + 0x84], eax
test eax, eax
je 0x6375ca
push eax
call esi
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x637557
push eax
call esi
push dword [ebx + 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x8c], 0
push 0
push 0
push 0
push 0
call edi
mov dword [ebx + 0x8c], eax
test eax, eax
je 0x6375a4
push eax
call esi
lea ecx, [ebx + 0x90]
call fcn.006106e0
test al, al
jne 0x63760d
push 0x6c2150
lea ecx, [ebp - 0x58]
call fcn.004022b0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.00467a70
lea ecx, [ebp - 0x58]
call fcn.00402270
jmp 0x63760d
push 0x6c218c
lea ecx, [ebp - 0x40]
call fcn.004022b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00467a70
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x63760d
mov ecx, dword [ebp - 0x40]
jmp 0x637602
push 0x36
push str.CDirectMusicBuffer::_n
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004023e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00467a70
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x63760d
mov ecx, dword [ebp - 0x28]
push 1
inc edx
call fcn.004020c0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 0xc