Function at 0x4352f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x458980
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push 0x45a67d
lea ecx, [esp + 0xc]
call fcn.004022f0
push 0x45a67d
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.004022f0
push str.Primary_sound_buffer_capabilities.
push str.UveSound::dumpBufferCaps
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._s__:__s
mov byte [esp + 0x3c], 1
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 4]
push ecx
call fcn.0041f150
mov eax, dword [esi + 0xc]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x14
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test byte [esp + 0x14], 0x10
mov eax, str._DSBCAPS_CTRL3D
lea edx, [eax + 1]
je 0x435392
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435385
lea ecx, [esp + 8]
jmp 0x43539d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435392
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRL3D
call fcn.0042bd40
test byte [esp + 0x14], 0x20
mov eax, str._DSBCAPS_CTRLFREQUENCY
lea edx, [eax + 1]
je 0x4353d0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4353c0
lea ecx, [esp + 8]
jmp 0x4353db
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4353d0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLFREQUENCY
call fcn.0042bd40
test byte [esp + 0x14], 0x40
mov eax, str._DSBCAPS_CTRLPAN
lea edx, [eax + 1]
je 0x435404
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4353f7
lea ecx, [esp + 8]
jmp 0x43540f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435404
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPAN
call fcn.0042bd40
mov al, byte [esp + 0x14]
test al, al
mov eax, str._DSBCAPS_CTRLVOLUME
lea edx, [eax + 1]
jns 0x435440
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435430
lea ecx, [esp + 8]
jmp 0x43544b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435440
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLVOLUME
call fcn.0042bd40
mov eax, dword [esp + 0x14]
test ah, 1
mov eax, str._DSBCAPS_CTRLPOSITIONNOTIFY
lea edx, [eax + 1]
je 0x435480
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435470
lea ecx, [esp + 8]
jmp 0x43548b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435480
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPOSITIONNOTIFY
call fcn.0042bd40
test dword [esp + 0x14], 0x10000
mov eax, str._DSBCAPS_GETCURRENTPOSITION2
lea edx, [eax + 1]
je 0x4354c0
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4354b0
lea ecx, [esp + 8]
jmp 0x4354cb
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4354c0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GETCURRENTPOSITION2
call fcn.0042bd40
mov eax, dword [esp + 0x14]
test ah, ah
mov eax, str._DSBCAPS_GLOBALFOCUS
lea edx, [eax + 1]
jns 0x4354f5
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4354e8
lea ecx, [esp + 8]
jmp 0x435500
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4354f5
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GLOBALFOCUS
call fcn.0042bd40
test dword [esp + 0x14], 0x40000
mov eax, str._DSBCAPS_LOCDEFER
lea edx, [eax + 1]
je 0x435530
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435520
lea ecx, [esp + 8]
jmp 0x43553b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435530
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCDEFER
call fcn.0042bd40
test byte [esp + 0x14], 4
mov eax, str._DSBCAPS_LOCHARDWARE
lea edx, [eax + 1]
je 0x435564
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435557
lea ecx, [esp + 8]
jmp 0x43556f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435564
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCHARDWARE
call fcn.0042bd40
test byte [esp + 0x14], 8
mov eax, str._DSBCAPS_LOCSOFTWARE
lea edx, [eax + 1]
je 0x4355a0
jmp 0x435590
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435590
lea ecx, [esp + 8]
jmp 0x4355ab
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4355a0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCSOFTWARE
call fcn.0042bd40
test dword [esp + 0x14], 0x20000
mov eax, str._DSBCAPS_MUTE3DATMAXDISTANCE
lea edx, [eax + 1]
je 0x4355e0
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4355d0
lea ecx, [esp + 8]
jmp 0x4355eb
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4355e0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_MUTE3DATMAXDISTANCE
call fcn.0042bd40
test byte [esp + 0x14], 1
mov eax, str._DSBCAPS_PRIMARYBUFFER
lea edx, [eax + 1]
je 0x435614
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435607
lea ecx, [esp + 8]
jmp 0x43561f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435614
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_PRIMARYBUFFER
call fcn.0042bd40
test byte [esp + 0x14], 2
mov eax, str._DSBCAPS_STATIC
lea edx, [eax + 1]
je 0x435650
jmp 0x435640
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435640
lea ecx, [esp + 8]
jmp 0x43565b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435650
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STATIC
call fcn.0042bd40
mov eax, dword [esp + 0x14]
test ah, 0x40
mov eax, str._DSBCAPS_STICKYFOCUS
lea edx, [eax + 1]
je 0x435690
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435680
lea ecx, [esp + 8]
jmp 0x43569b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435690
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STICKYFOCUS
call fcn.0042bd40
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push edx
push eax
push str.dwFlags
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._t_s:_s
call fcn.004022f0
mov ecx, dword [0x477970]
mov edx, dword [ecx + 4]
push edx
call fcn.0041f150
mov eax, dword [esp + 0x18]
push 0x45a67d
push eax
call fcn.0043c32d
add esp, 0x1c
test eax, eax
je 0x43571a
mov ecx, dword [esp + 4]
push ecx
push str._unsupported_
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._t_s__s
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 4]
push eax
call fcn.0041f150
add esp, 0x10
mov eax, 0x45a67d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435722
sub eax, edx
push eax
push 0x45a67d
lea ecx, [esp + 0x10]
call fcn.004021a0
mov eax, 0x45a67d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435742
sub eax, edx
push eax
push 0x45a67d
lea ecx, [esp + 0xc]
call fcn.004021a0
mov ecx, dword [esp + 0x18]
push ecx
push str.dwBufferBytes
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._t_s:__u
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 4]
push eax
call fcn.0041f150
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push ecx
push str.dwUnlockTransferRate
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._t_s:__u
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 4]
push eax
call fcn.0041f150
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ecx
push str.dwPlayCpuOverhead
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._t_s:__u
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 4]
push eax
call fcn.0041f150
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43582a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret