Function at 0x421230
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x60a2d6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x634f64
call fcn.0041a030
xor ebx, ebx
mov dword [esp + 0x48], ebx
or ebp, 0xffffffff
mov dword [esp + 0x48], ebp
mov ecx, edi
call fcn.0041f410
mov dword [esp + 0x3c], 1
lea ecx, [edi + 0x48]
mov dword [edi], vtable.CGraphRegFilter.0
call fcn.00419b70
mov byte [esp + 0x3c], 2
lea eax, [edi + 0x4c]
mov dword [esp + 0x24], eax
mov dword [eax], ebx
mov byte [esp + 0x3c], 4
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
lea esi, [edi + 0x18]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
push 0x69b5d0
push esi
mov dword [esi + 0xc], eax
call fcn.00401250
add esp, 8
test eax, eax
jne 0x42164c
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00499630
add esp, 8
mov byte [esp + 0x3c], 5
push str.CLSID083863F1_70DE_11d0_BD40_00A0C911CE86Instance_
lea ecx, [esp + 0x28]
call fcn.00401eb0
mov byte [esp + 0x3c], 6
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004030c0
add esp, 0xc
mov byte [esp + 0x3c], 8
lea ecx, [esp + 0x24]
call fcn.00401a50
push str.CLSID_
lea ecx, [esp + 0x28]
call fcn.00401eb0
mov byte [esp + 0x3c], 9
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
call fcn.004030c0
add esp, 0xc
mov byte [esp + 0x3c], 0xb
lea ecx, [esp + 0x24]
call fcn.00401a50
xor esi, esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x3c], 0xc
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push ecx
push DirectSoundCreate
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x421458
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
mov esi, ebp
mov dword [esp + 0x58], esi
push ebp
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x421447
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4213cd
cmp eax, 2
jne 0x421447
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.004019e0
mov byte [esp + 0x3c], 0xd
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebp
or eax, ecx
jge 0x421406
push ebp
lea ecx, [esp + 0x18]
call fcn.00401990
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
lea ecx, [esp + 0x50]
call fcn.0041adb0
test eax, eax
jne 0x421435
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.004027b0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [edi + 8]
call fcn.0041f850
mov byte [esp + 0x3c], 0xc
lea ecx, [esp + 0x14]
call fcn.00401a50
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x421458
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x44], esi
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push edx
push DirectSoundCreate
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4215e8
xor eax, eax
cmp esi, ebx
je 0x421490
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], ebx
cmp eax, ebx
mov ebp, dword [esp + 0x1c]
mov esi, ebp
mov dword [esp + 0x44], esi
jne 0x4215e8
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.FriendlyName
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x421552
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4214d4
cmp eax, 2
jne 0x421552
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.004019e0
mov byte [esp + 0x3c], 0xe
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebp
or eax, ecx
jge 0x42150d
push ebp
lea ecx, [esp + 0x18]
call fcn.00401990
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push edx
push str.FriendlyName
lea ecx, [esp + 0x50]
call fcn.0041adb0
test eax, eax
jne 0x421540
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.004027b0
mov edx, dword [esp + 0x14]
push edx
lea ecx, [edi + 8]
call fcn.0041f850
mov byte [esp + 0x3c], 0xc
lea ecx, [esp + 0x14]
call fcn.00401a50
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.FilterData
push ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4215d7
cmp dword [esp + 0x24], 3
jne 0x4215d7
mov dword [esp + 0x14], ebx
mov byte [esp + 0x3c], 0xf
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.0041a720
test al, al
je 0x4215c1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
push str.FilterData
lea ecx, [esp + 0x50]
call fcn.0041ad70
test eax, eax
jne 0x4215c1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
mov ecx, edi
call fcn.0041cef0
mov byte [esp + 0x3c], 0xc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005b465e
add esp, 4
mov dword [esp + 0x14], ebx
cmp ebp, ebx
je 0x4215e8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x48]
cmp eax, 0x10000
jne 0x4215fa
cmp dword [esp + 0x4c], 0x20
je 0x421604
mov edx, dword [esp + 0x4c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov byte [esp + 0x3c], 0xb
cmp esi, ebx
je 0x421618
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 8
lea ecx, [esp + 0x28]
call fcn.00401a50
mov byte [esp + 0x3c], 5
lea ecx, [esp + 0x2c]
call fcn.00401a50
mov byte [esp + 0x3c], 4
lea ecx, [esp + 0x20]
call fcn.00401a50
mov dword [esp + 0x3c], 0xffffffff
jmp 0x421650
mov dword [esp + 0x3c], ebp
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc