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

Disassembly:
push 0xffffffffffffffff
push 0x45bec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push 0x45d66d
lea ecx, [esp + 0xc]
call fcn.00402330
push 0x45d66d
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.00402330
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.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 4]
push ecx
call fcn.0041fdb0
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 0x438012
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438005
lea ecx, [esp + 8]
jmp 0x43801d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438012
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRL3D
call fcn.00420d60
test byte [esp + 0x14], 0x20
mov eax, str._DSBCAPS_CTRLFREQUENCY
lea edx, [eax + 1]
je 0x438050
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438040
lea ecx, [esp + 8]
jmp 0x43805b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438050
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLFREQUENCY
call fcn.00420d60
test byte [esp + 0x14], 0x40
mov eax, str._DSBCAPS_CTRLPAN
lea edx, [eax + 1]
je 0x438084
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438077
lea ecx, [esp + 8]
jmp 0x43808f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438084
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPAN
call fcn.00420d60
mov al, byte [esp + 0x14]
test al, al
mov eax, str._DSBCAPS_CTRLVOLUME
lea edx, [eax + 1]
jns 0x4380c0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4380b0
lea ecx, [esp + 8]
jmp 0x4380cb
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4380c0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLVOLUME
call fcn.00420d60
mov eax, dword [esp + 0x14]
test ah, 1
mov eax, str._DSBCAPS_CTRLPOSITIONNOTIFY
lea edx, [eax + 1]
je 0x438100
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4380f0
lea ecx, [esp + 8]
jmp 0x43810b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438100
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPOSITIONNOTIFY
call fcn.00420d60
test dword [esp + 0x14], 0x10000
mov eax, str._DSBCAPS_GETCURRENTPOSITION2
lea edx, [eax + 1]
je 0x438140
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438130
lea ecx, [esp + 8]
jmp 0x43814b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438140
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GETCURRENTPOSITION2
call fcn.00420d60
mov eax, dword [esp + 0x14]
test ah, ah
mov eax, str._DSBCAPS_GLOBALFOCUS
lea edx, [eax + 1]
jns 0x438175
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438168
lea ecx, [esp + 8]
jmp 0x438180
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438175
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GLOBALFOCUS
call fcn.00420d60
test dword [esp + 0x14], 0x40000
mov eax, str._DSBCAPS_LOCDEFER
lea edx, [eax + 1]
je 0x4381b0
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4381a0
lea ecx, [esp + 8]
jmp 0x4381bb
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4381b0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCDEFER
call fcn.00420d60
test byte [esp + 0x14], 4
mov eax, str._DSBCAPS_LOCHARDWARE
lea edx, [eax + 1]
je 0x4381e4
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4381d7
lea ecx, [esp + 8]
jmp 0x4381ef
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4381e4
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCHARDWARE
call fcn.00420d60
test byte [esp + 0x14], 8
mov eax, str._DSBCAPS_LOCSOFTWARE
lea edx, [eax + 1]
je 0x438220
jmp 0x438210
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438210
lea ecx, [esp + 8]
jmp 0x43822b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438220
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCSOFTWARE
call fcn.00420d60
test dword [esp + 0x14], 0x20000
mov eax, str._DSBCAPS_MUTE3DATMAXDISTANCE
lea edx, [eax + 1]
je 0x438260
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438250
lea ecx, [esp + 8]
jmp 0x43826b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438260
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_MUTE3DATMAXDISTANCE
call fcn.00420d60
test byte [esp + 0x14], 1
mov eax, str._DSBCAPS_PRIMARYBUFFER
lea edx, [eax + 1]
je 0x438294
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438287
lea ecx, [esp + 8]
jmp 0x43829f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438294
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_PRIMARYBUFFER
call fcn.00420d60
test byte [esp + 0x14], 2
mov eax, str._DSBCAPS_STATIC
lea edx, [eax + 1]
je 0x4382d0
jmp 0x4382c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382c0
lea ecx, [esp + 8]
jmp 0x4382db
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382d0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STATIC
call fcn.00420d60
mov eax, dword [esp + 0x14]
test ah, 0x40
mov eax, str._DSBCAPS_STICKYFOCUS
lea edx, [eax + 1]
je 0x438310
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438300
lea ecx, [esp + 8]
jmp 0x43831b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438310
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STICKYFOCUS
call fcn.00420d60
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.00402330
mov ecx, dword [0x47c170]
mov edx, dword [ecx + 4]
push edx
call fcn.0041fdb0
mov eax, dword [esp + 0x18]
push 0x45d66d
push eax
call fcn.0043ef8d
add esp, 0x1c
test eax, eax
je 0x43839a
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.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 4]
push eax
call fcn.0041fdb0
add esp, 0x10
mov eax, 0x45d66d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4383a2
sub eax, edx
push eax
push 0x45d66d
lea ecx, [esp + 0x10]
call fcn.004021e0
mov eax, 0x45d66d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4383c2
sub eax, edx
push eax
push 0x45d66d
lea ecx, [esp + 0xc]
call fcn.004021e0
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.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 4]
push eax
call fcn.0041fdb0
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.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 4]
push eax
call fcn.0041fdb0
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.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 4]
push eax
call fcn.0041fdb0
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 0x438484
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 0x4384aa
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