Function at 0x4cc910
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a17cc
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5e000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xb4], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb0], 0
mov esi, dword [0x5a69bc]
lea eax, [ebx + 0x288]
push eax
push 0x5a9cc0
push 3
push 0
push 0x5a9b20
mov dword [ebp - 0xd4], eax
call esi
test eax, eax
jns 0x4cc9b9
mov esi, 0x80004005
jmp 0x4cd3b4
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.0041afd0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
je 0x4cca01
mov dword [ebp - 0xc4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0xc4]
push eax
push 0x5a9be0
push 3
push 0
push 0x5a9b30
call esi
test eax, eax
js 0x4cd36f
mov esi, dword [ebp - 0xc4]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x4cca49
mov dword [ebp - 0xb0], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 8
push eax
push 0x5a9b40
push esi
call edi
test eax, eax
js 0x4cd36f
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xd0]
push edx
lea edx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0x34]
jne 0x4cce49
test eax, eax
sete bl
mov byte [ebp - 0xa5], bl
nop
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x13
push eax
push dword [ebp - 0xa4]
call fcn.004cc880
mov edi, dword [ebp - 0x28]
test bl, bl
mov ebx, dword [ebp - 0x14]
je 0x4ccb20
or esi, 0xffffffff
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x18], 0xffffffff
mov edx, 0x1a
cmovb esi, dword [ebp - 0x18]
cmp ebx, 8
mov eax, esi
cmovae ecx, edi
cmp esi, 0x1a
cmova eax, edx
mov edx, str.Default_DirectSound_Device
push eax
call fcn.004067b0
add esp, 4
test eax, eax
jne 0x4ccb8f
cmp esi, 0x1a
jmp 0x4ccb8b
mov esi, dword [ebp - 0x18]
cmp esi, 0xd
jbe 0x4ccb8f
cmp ebx, 8
lea ecx, [ebp - 0x28]
push 0xd
cmovae ecx, edi
mov edx, str.DirectSound:
setae byte [ebp - 0xb5]
call fcn.004067b0
add esp, 4
test eax, eax
jne 0x4ccb8f
cmp dword [ebp - 0x30], 8
lea eax, [esi - 0xd]
lea edx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
or esi, 0xffffffff
cmp eax, 0xffffffff
cmovb esi, eax
cmp byte [ebp - 0xb5], 0
mov eax, esi
cmovne ecx, edi
cmp dword [ebp - 0x34], esi
cmovb eax, dword [ebp - 0x34]
push eax
lea ecx, [ecx + 0x1a]
call fcn.004067b0
add esp, 4
test eax, eax
jne 0x4ccb8f
cmp esi, dword [ebp - 0x34]
jb 0x4ccb8f
jbe 0x4ccc02
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 8
cmp ebx, 8
jb 0x4ccbd3
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x4ccbc9
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd3a4
push ebx
push edi
call fcn.0052f847
add esp, 8
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xd0]
push edx
lea edx, [ebp - 0xa4]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4cce40
mov bl, byte [ebp - 0xa5]
jmp 0x4ccab0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xbc]
mov eax, dword [eax]
mov esi, dword [eax + 0x20]
mov eax, dword [ebp - 0xb4]
add eax, 0x2a4
mov dword [ebp - 0xbc], eax
call fcn.004cd8e0
push eax
push 0x5a9c30
push 0
push 0
push dword [ebp - 0xa4]
call esi
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 8
cmp ebx, 8
jb 0x4ccc7f
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x4ccc75
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd3a4
push ebx
push edi
call fcn.0052f847
add esp, 8
push 0x1a0
call fcn.0052f855
mov ebx, eax
add esp, 4
mov dword [ebp - 0xbc], ebx
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 0x15
push eax
push 0
push str.TextureRenderer
push 0x5c27f8
mov ecx, ebx
call fcn.00556390
lea esi, [ebx + 0x174]
mov dword [ebx], vtable.CMovieTexture.2.0
push esi
mov dword [ebx + 0xc], vtable.CMovieTexture.1.0
mov dword [ebx + 0x10], vtable.CMovieTexture.3.0
mov dword [ebx + 0xe0], vtable.CMovieTexture.4.0
mov dword [ebx + 0xe4], vtable.CMovieTexture.0
mov byte [ebx + 0x160], 0
mov dword [ebx + 0x170], 0
call dword [0x5a6188]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x190], 0
mov dword [ebx + 0x194], 0
mov dword [ebx + 0x198], 0
mov dword [ebp - 0xac], 0
mov byte [ebp - 4], 8
push esi
mov dword [ebx + 0x18c], eax
call dword [0x5a6190]
mov edi, dword [ebp - 0xb4]
push esi
lea eax, [edi + 0x2a8]
mov dword [ebx + 0x170], eax
call dword [0x5a6194]
mov esi, dword [edi + 0x2a0]
cmp esi, ebx
je 0x4ccd8c
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0x1a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [edi + 0x2a0]
mov dword [edi + 0x2a0], ebx
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x4ccd82
mov ecx, dword [eax + 0xc]
add eax, 0xc
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 8
mov esi, dword [edi + 0x2a0]
mov edx, dword [edi + 0x288]
push str.TextureRenderer
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
lea eax, [esi + 0xc]
neg esi
sbb esi, esi
and esi, eax
push esi
push edx
call ecx
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
js 0x4cd374
mov edx, dword [edi + 0x2a4]
test edx, edx
je 0x4ccde5
mov ecx, dword [edi + 0x288]
push str.AudioRenderer
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
js 0x4cd374
mov esi, dword [edi + 0x288]
mov eax, dword [esi]
mov edi, dword [eax + 0x38]
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x4cce0e
mov dword [ebp - 0xc8], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 8
push eax
push str.SOURCE
push dword [ebp - 0xd8]
push esi
call edi
mov esi, eax
mov dword [ebp - 0xac], esi
cmp esi, 0x80040216
jne 0x4ccff2
jmp 0x4cd374
mov ebx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4ccc7f
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xd0]
push edx
lea edx, [ebp - 0xa4]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4ccc7f
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x14
push eax
push dword [ebp - 0xa4]
call fcn.004cc880
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
or esi, 0xffffffff
mov edx, 0x1a
cmp dword [ebp - 0x18], 0xffffffff
cmovb esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
mov eax, esi
setae byte [ebp - 0xa5]
cmovae ecx, edi
cmp esi, 0x1a
cmova eax, edx
mov edx, str.Default_DirectSound_Device
push eax
call fcn.004067b0
add esp, 4
test eax, eax
jne 0x4ccf03
cmp esi, 0x1a
jb 0x4ccf03
jbe 0x4ccf77
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebp - 0xa5], 0
mov byte [ebp - 4], 8
je 0x4ccf4e
mov eax, dword [ebp - 0x14]
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4ccf44
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd3a4
push ecx
push edi
call fcn.0052f847
add esp, 8
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xd0]
push edx
lea edx, [ebp - 0xa4]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4cce90
jmp 0x4ccc7f
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xbc]
mov eax, dword [eax]
mov esi, dword [eax + 0x20]
lea eax, [ebx + 0x2a4]
mov dword [ebp - 0xbc], eax
call fcn.004cd8e0
push eax
push 0x5a9c30
push 0
push 0
push dword [ebp - 0xa4]
call esi
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4ccc7f
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4ccfec
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd3a4
push ecx
jmp 0x4ccc76
test esi, esi
js 0x4cd374
mov esi, dword [ebp - 0xc8]
lea ecx, [ebp - 0xbc]
mov eax, dword [esi]
mov edi, dword [eax + 0x2c]
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xbc], eax
call fcn.004cd8e0
push eax
push str.Output
push esi
call edi
mov dword [ebp - 0xac], eax
test eax, eax
js 0x4cd161
cmp dword [ebp + 0x10], 0
jne 0x4cd0f9
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 0x2d
lea edi, [ebx + 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0xbc]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xbc], eax
call fcn.004cd8e0
push eax
push 0x5c25c0
push edi
call esi
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
js 0x4cd0a5
mov eax, dword [ebp - 0xd4]
push dword [ebp - 0xa4]
push dword [ebp - 0xcc]
mov ecx, dword [eax]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
jns 0x4cd0cc
mov byte [ebp - 4], 0x33
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x4cd374
mov dword [ebp - 0xa4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x4cd374
mov byte [ebp - 4], 0x38
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x4cd0ea
mov dword [ebp - 0xa4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, dword [ebp - 0xb4]
mov byte [ebp - 4], 8
jmp 0x4cd1d0
mov edi, dword [ebp - 0xd4]
push dword [ebp - 0xcc]
mov ecx, dword [edi]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
js 0x4cd374
mov ecx, dword [edi]
mov edi, dword [ebp - 0xb4]
add edi, 0x298
push edi
mov eax, dword [ecx]
push 0x5c2808
push ecx
call dword [eax]
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
js 0x4cd374
mov edi, dword [edi]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
call fcn.004ebb80
push eax
push edi
call esi
mov edi, dword [ebp - 0xb4]
jmp 0x4cd1d0
mov esi, dword [ebp - 0xd4]
mov edi, dword [ebp - 0xb4]
mov ecx, dword [esi]
lea edx, [edi + 0x298]
push edx
push 0x5c2808
mov eax, dword [ecx]
push ecx
call dword [eax]
mov ecx, dword [esi]
push 0
push dword [ebp - 0xd8]
mov dword [ebp - 0xac], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
js 0x4cd374
cmp dword [ebp + 0x10], 0
mov esi, dword [edi + 0x298]
mov eax, dword [esi]
jne 0x4cd1bb
push 0xffffd8f0
jmp 0x4cd1c6
mov ecx, dword [ebp + 0x14]
call fcn.004ebb80
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0xac], eax
mov ecx, dword [edi + 0x288]
lea edx, [edi + 0x28c]
push edx
push 0x5a9ba0
push ecx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x288]
lea edx, [edi + 0x290]
push edx
push 0x5a9c80
push ecx
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [edi + 0x288]
mov eax, dword [edx]
mov ecx, dword [eax]
lea eax, [edi + 0x294]
push eax
push 0x5a9bb0
push edx
call ecx
mov ecx, dword [edi + 0x288]
lea esi, [edi + 0x29c]
push esi
push 0x5a9bd0
push ecx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
mov edx, dword [ebp + 0x20]
or eax, edx
je 0x4cd25f
push 0
mov dword [ebp - 0xc0], ecx
mov ecx, dword [edi + 0x290]
push 0
mov dword [ebp - 0xbc], edx
lea edx, [ebp - 0xc0]
push 5
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x38]
mov ecx, dword [esi]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [esi]
push dword [0x5e653c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [esi]
push 0x44000000
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [edi + 0x28c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
js 0x4cd374
cmp byte [ebx + 0x160], 0
jne 0x4cd2bb
nop dword [eax]
pause
cmp byte [ebx + 0x160], 0
je 0x4cd2b0
mov eax, dword [edi + 0x28c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebx + 0x164]
lea ecx, [edi + 0x2d8]
push dword [ebp - 0xd8]
mov dword [edi + 0x2c0], eax
mov eax, dword [ebx + 0x168]
mov dword [edi + 0x2c4], eax
mov eax, dword [ebx + 0x16c]
mov dword [edi + 0x2c8], eax
call fcn.004036a0
cmp dword [ebp + 0x24], 0
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2d4], eax
jne 0x4cd365
movd xmm2, dword [edi + 0x2c0]
movd xmm1, dword [edi + 0x2c4]
cvtdq2ps xmm2, xmm2
mov dword [edi + 0x104], 0
mov dword [edi + 0x110], 0
cvtdq2ps xmm1, xmm1
mulss xmm2, dword [0x5c8ef4]
mulss xmm1, dword [0x5c8ef4]
movss dword [edi + 0xfc], xmm2
movss dword [edi + 0x108], xmm2
movss dword [edi + 0x100], xmm1
movss dword [edi + 0x10c], xmm1
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [edi + 4], eax
jmp 0x4cd374
mov esi, 0x80004005
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4cd3b4
mov edx, dword [ebp - 0x44]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd3aa
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4cd3aa
call dword [0x5a67b8]
push ecx
push edx
call fcn.0052f847
add esp, 8
mov byte [ebp - 4], 0x49
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x4cd3d2
mov dword [ebp - 0xb0], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x4a
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
je 0x4cd3f0
mov dword [ebp - 0xc4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x4b
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
je 0x4cd40e
mov dword [ebp - 0xcc], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0x4c
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x4cd42f
mov dword [ebp - 0xc8], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f4c5
mov esp, ebp
pop ebp
ret 0x20