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

Disassembly:
push 0xffffffffffffffff
push 0x45c140
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.0041fde0
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 0x438282
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438275
lea ecx, [esp + 8]
jmp 0x43828d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438282
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRL3D
call fcn.00420d90
test byte [esp + 0x14], 0x20
mov eax, str._DSBCAPS_CTRLFREQUENCY
lea edx, [eax + 1]
je 0x4382c0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382b0
lea ecx, [esp + 8]
jmp 0x4382cb
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382c0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLFREQUENCY
call fcn.00420d90
test byte [esp + 0x14], 0x40
mov eax, str._DSBCAPS_CTRLPAN
lea edx, [eax + 1]
je 0x4382f4
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382e7
lea ecx, [esp + 8]
jmp 0x4382ff
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382f4
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPAN
call fcn.00420d90
mov al, byte [esp + 0x14]
test al, al
mov eax, str._DSBCAPS_CTRLVOLUME
lea edx, [eax + 1]
jns 0x438330
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438320
lea ecx, [esp + 8]
jmp 0x43833b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438330
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLVOLUME
call fcn.00420d90
mov eax, dword [esp + 0x14]
test ah, 1
mov eax, str._DSBCAPS_CTRLPOSITIONNOTIFY
lea edx, [eax + 1]
je 0x438370
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438360
lea ecx, [esp + 8]
jmp 0x43837b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438370
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_CTRLPOSITIONNOTIFY
call fcn.00420d90
test dword [esp + 0x14], 0x10000
mov eax, str._DSBCAPS_GETCURRENTPOSITION2
lea edx, [eax + 1]
je 0x4383b0
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4383a0
lea ecx, [esp + 8]
jmp 0x4383bb
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4383b0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GETCURRENTPOSITION2
call fcn.00420d90
mov eax, dword [esp + 0x14]
test ah, ah
mov eax, str._DSBCAPS_GLOBALFOCUS
lea edx, [eax + 1]
jns 0x4383e5
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4383d8
lea ecx, [esp + 8]
jmp 0x4383f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4383e5
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_GLOBALFOCUS
call fcn.00420d90
test dword [esp + 0x14], 0x40000
mov eax, str._DSBCAPS_LOCDEFER
lea edx, [eax + 1]
je 0x438420
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438410
lea ecx, [esp + 8]
jmp 0x43842b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438420
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCDEFER
call fcn.00420d90
test byte [esp + 0x14], 4
mov eax, str._DSBCAPS_LOCHARDWARE
lea edx, [eax + 1]
je 0x438454
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438447
lea ecx, [esp + 8]
jmp 0x43845f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438454
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCHARDWARE
call fcn.00420d90
test byte [esp + 0x14], 8
mov eax, str._DSBCAPS_LOCSOFTWARE
lea edx, [eax + 1]
je 0x438490
jmp 0x438480
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438480
lea ecx, [esp + 8]
jmp 0x43849b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438490
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_LOCSOFTWARE
call fcn.00420d90
test dword [esp + 0x14], 0x20000
mov eax, str._DSBCAPS_MUTE3DATMAXDISTANCE
lea edx, [eax + 1]
je 0x4384d0
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4384c0
lea ecx, [esp + 8]
jmp 0x4384db
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4384d0
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_MUTE3DATMAXDISTANCE
call fcn.00420d90
test byte [esp + 0x14], 1
mov eax, str._DSBCAPS_PRIMARYBUFFER
lea edx, [eax + 1]
je 0x438504
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4384f7
lea ecx, [esp + 8]
jmp 0x43850f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438504
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_PRIMARYBUFFER
call fcn.00420d90
test byte [esp + 0x14], 2
mov eax, str._DSBCAPS_STATIC
lea edx, [eax + 1]
je 0x438540
jmp 0x438530
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438530
lea ecx, [esp + 8]
jmp 0x43854b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438540
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STATIC
call fcn.00420d90
mov eax, dword [esp + 0x14]
test ah, 0x40
mov eax, str._DSBCAPS_STICKYFOCUS
lea edx, [eax + 1]
je 0x438580
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438570
lea ecx, [esp + 8]
jmp 0x43858b
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438580
lea ecx, [esp + 4]
sub eax, edx
push eax
push str._DSBCAPS_STICKYFOCUS
call fcn.00420d90
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.0041fde0
mov eax, dword [esp + 0x18]
push 0x45d66d
push eax
call fcn.0043f1fd
add esp, 0x1c
test eax, eax
je 0x43860a
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.0041fde0
add esp, 0x10
mov eax, 0x45d66d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438612
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 0x438632
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.0041fde0
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.0041fde0
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.0041fde0
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 0x4386f4
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 0x43871a
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