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

Disassembly:
push 0xffffffffffffffff
push 0x4589f0
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.00419450
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 0x42fa62
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fa55
lea ecx, [esp + 8]
jmp 0x42fa6d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fa62
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRL3D
call fcn.00426410
test byte [esp + 0x14], 0x20
mov eax, str._DSBCAPS_CTRLFREQUENCY
lea edx, [eax + 1]
je 0x42faa0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fa90
lea ecx, [esp + 8]
jmp 0x42faab
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42faa0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLFREQUENCY
call fcn.00426410
test byte [esp + 0x14], 0x40
mov eax, str._DSBCAPS_CTRLPAN
lea edx, [eax + 1]
je 0x42fad4
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fac7
lea ecx, [esp + 8]
jmp 0x42fadf
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fad4
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPAN
call fcn.00426410
mov al, byte [esp + 0x14]
test al, al
mov eax, str._DSBCAPS_CTRLVOLUME
lea edx, [eax + 1]
jns 0x42fb10
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb00
lea ecx, [esp + 8]
jmp 0x42fb1b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb10
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLVOLUME
call fcn.00426410
mov eax, dword [esp + 0x14]
test ah, 1
mov eax, str._DSBCAPS_CTRLPOSITIONNOTIFY
lea edx, [eax + 1]
je 0x42fb50
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb40
lea ecx, [esp + 8]
jmp 0x42fb5b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb50
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPOSITIONNOTIFY
call fcn.00426410
test dword [esp + 0x14], 0x10000
mov eax, str._DSBCAPS_GETCURRENTPOSITION2
lea edx, [eax + 1]
je 0x42fb90
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb80
lea ecx, [esp + 8]
jmp 0x42fb9b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb90
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GETCURRENTPOSITION2
call fcn.00426410
mov eax, dword [esp + 0x14]
test ah, ah
mov eax, str._DSBCAPS_GLOBALFOCUS
lea edx, [eax + 1]
jns 0x42fbc5
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fbb8
lea ecx, [esp + 8]
jmp 0x42fbd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fbc5
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GLOBALFOCUS
call fcn.00426410
test dword [esp + 0x14], 0x40000
mov eax, str._DSBCAPS_LOCDEFER
lea edx, [eax + 1]
je 0x42fc00
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fbf0
lea ecx, [esp + 8]
jmp 0x42fc0b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fc00
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCDEFER
call fcn.00426410
test byte [esp + 0x14], 4
mov eax, str._DSBCAPS_LOCHARDWARE
lea edx, [eax + 1]
je 0x42fc34
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fc27
lea ecx, [esp + 8]
jmp 0x42fc3f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fc34
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCHARDWARE
call fcn.00426410
test byte [esp + 0x14], 8
mov eax, str._DSBCAPS_LOCSOFTWARE
lea edx, [eax + 1]
je 0x42fc70
jmp 0x42fc60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fc60
lea ecx, [esp + 8]
jmp 0x42fc7b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fc70
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCSOFTWARE
call fcn.00426410
test dword [esp + 0x14], 0x20000
mov eax, str._DSBCAPS_MUTE3DATMAXDISTANCE
lea edx, [eax + 1]
je 0x42fcb0
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fca0
lea ecx, [esp + 8]
jmp 0x42fcbb
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fcb0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_MUTE3DATMAXDISTANCE
call fcn.00426410
test byte [esp + 0x14], 1
mov eax, str._DSBCAPS_PRIMARYBUFFER
lea edx, [eax + 1]
je 0x42fce4
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fcd7
lea ecx, [esp + 8]
jmp 0x42fcef
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fce4
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_PRIMARYBUFFER
call fcn.00426410
test byte [esp + 0x14], 2
mov eax, str._DSBCAPS_STATIC
lea edx, [eax + 1]
je 0x42fd20
jmp 0x42fd10
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fd10
lea ecx, [esp + 8]
jmp 0x42fd2b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fd20
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STATIC
call fcn.00426410
mov eax, dword [esp + 0x14]
test ah, 0x40
mov eax, str._DSBCAPS_STICKYFOCUS
lea edx, [eax + 1]
je 0x42fd60
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fd50
lea ecx, [esp + 8]
jmp 0x42fd6b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fd60
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STICKYFOCUS
call fcn.00426410
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.00419450
mov eax, dword [esp + 0x18]
push 0x45a67d
push eax
call fcn.0043c80d
add esp, 0x1c
test eax, eax
je 0x42fdea
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.00419450
add esp, 0x10
mov eax, 0x45a67d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fdf2
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 0x42fe12
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.00419450
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.00419450
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.00419450
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 0x42fed4
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 0x42fefa
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