Function at 0x431410
Capabilities:
Access peb ldr_data
Create thread
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], esi
jne 0x431757
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44], edi
cmp edi, ebx
je 0x431453
mov eax, dword [edi]
mov ecx, dword [eax]
push edi
call ecx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x431461
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x30], edi
cmp eax, ebx
je 0x431473
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x431486
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 1
lea eax, [esi + 0x54]
mov dword [ebp - 0x54], eax
add eax, 4
push eax
mov dword [ebp - 0x58], vtable.CCS::CCSAutoLock.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
test al, al
jne 0x4314d3
push 0x471e80
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], str.Open_Failed
call fcn.0043f0fc
mov eax, dword [esi + 0x2c]
mov edx, dword [eax]
lea edi, [esi + 0x40]
push edi
push eax
mov eax, dword [edx + 0x18]
call eax
fild dword [esi + 0x48]
mov ecx, dword [esi + 0x48]
test ecx, ecx
jge 0x4314f2
fadd dword [0x46b238]
fmul qword [0x46b2a0]
push 0x469df4
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x24], eax
xor eax, eax
fldcw word [ebp - 0x24]
fistp qword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
fldcw word [ebp + 0xa]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x7c], 0x24
mov dword [ebp - 0x78], 0x180e8
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], edi
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x7c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jge 0x431581
push 0x471e80
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], str.CreateSoundBuffer_Failed
call fcn.0043f0fc
mov eax, dword [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x48], edi
mov ebx, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], ebx
test eax, eax
je 0x43159e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
test edi, edi
je 0x4315b1
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push 0x469e04
push ebx
call edx
test eax, eax
jge 0x4315da
push 0x471e80
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], str.IDirectSoundBuffer8_Create_Failed
call fcn.0043f0fc
mov ebx, dword [ebp - 0x34]
mov dword [ebp + 8], ebx
lea edi, [esi + 0x28]
lea eax, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0042e480
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4315ff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, dword [edi]
mov ecx, dword [eax]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [esi + 0x10]
push edx
push 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
jge 0x431636
push 0x471e80
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x38], str.Soundbuffer_Lock_Failed
call fcn.0043f0fc
cmp word [esi + 0x4e], 8
jne 0x43164c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push edx
push 0x80
push eax
jmp 0x431656
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push 0
push edx
call fcn.0043c820
mov ecx, dword [ebp - 0x14]
mov edi, dword [edi]
mov edx, dword [ebp - 0x18]
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
add esp, 0xc
push 0
push 0
push ecx
push edx
push edi
call eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov dword [esi + 0x14], eax
test eax, eax
jne 0x43169b
push 0x471e80
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], str.Audio_Length_Invalid
call fcn.0043f0fc
mov cl, byte [ebp + 0xc]
mov edx, dword [esi]
mov eax, dword [ebp + 0x10]
mov edx, dword [edx + 0x50]
mov byte [esi + 0x20], cl
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0x64
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
push 0x64
mov ecx, esi
call edx
lea eax, [ebp - 0x50]
push eax
push 0
push esi
push 0x431b70
push 0
push 0
mov byte [esi + 0xc], 1
call fcn.0043ecf0
add esp, 0x18
mov dword [esi + 0x34], eax
call fcn.00431d20
lea ecx, [ebp - 0x58]
call fcn.0041c080
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc