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

Disassembly:
push 0xffffffffffffffff
push 0x5ee496
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6f1550]
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 0x616034
call fcn.00412bf0
xor ebx, ebx
mov dword [esp + 0x48], ebx
or ebp, 0xffffffff
mov dword [esp + 0x48], ebp
mov ecx, edi
call fcn.004181e0
mov dword [esp + 0x3c], 1
lea ecx, [edi + 0x48]
mov dword [edi], vtable.CGraphRegFilter.0
call fcn.00412730
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 0x67b350
push esi
mov dword [esi + 0xc], eax
call fcn.00401260
add esp, 8
test eax, eax
jne 0x41a68c
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00488730
add esp, 8
mov byte [esp + 0x3c], 5
push str.CLSID083863F1_70DE_11d0_BD40_00A0C911CE86Instance_
lea ecx, [esp + 0x28]
call fcn.00401f00
mov byte [esp + 0x3c], 6
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00418d30
add esp, 0xc
mov byte [esp + 0x3c], 8
lea ecx, [esp + 0x24]
call fcn.00401aa0
push str.CLSID_
lea ecx, [esp + 0x28]
call fcn.00401f00
mov byte [esp + 0x3c], 9
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
call fcn.00418d30
add esp, 0xc
mov byte [esp + 0x3c], 0xb
lea ecx, [esp + 0x24]
call fcn.00401aa0
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 0x41a498
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 0x41a487
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x41a40d
cmp eax, 2
jne 0x41a487
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.00401a30
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 0x41a446
push ebp
lea ecx, [esp + 0x18]
call fcn.004019e0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
lea ecx, [esp + 0x50]
call fcn.004137b0
test eax, eax
jne 0x41a475
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.004150b0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [edi + 8]
call fcn.00418680
mov byte [esp + 0x3c], 0xc
lea ecx, [esp + 0x14]
call fcn.00401aa0
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x41a498
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 0x41a628
xor eax, eax
cmp esi, ebx
je 0x41a4d0
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 0x41a628
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 0x41a592
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x41a514
cmp eax, 2
jne 0x41a592
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.00401a30
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 0x41a54d
push ebp
lea ecx, [esp + 0x18]
call fcn.004019e0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push edx
push str.FriendlyName
lea ecx, [esp + 0x50]
call fcn.004137b0
test eax, eax
jne 0x41a580
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.004150b0
mov edx, dword [esp + 0x14]
push edx
lea ecx, [edi + 8]
call fcn.00418680
mov byte [esp + 0x3c], 0xc
lea ecx, [esp + 0x14]
call fcn.00401aa0
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 0x41a617
cmp dword [esp + 0x24], 3
jne 0x41a617
mov dword [esp + 0x14], ebx
mov byte [esp + 0x3c], 0xf
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.004131c0
test al, al
je 0x41a601
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
push str.FilterData
lea ecx, [esp + 0x50]
call fcn.00413770
test eax, eax
jne 0x41a601
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
mov ecx, edi
call fcn.00415c20
mov byte [esp + 0x3c], 0xc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0059b05f
add esp, 4
mov dword [esp + 0x14], ebx
cmp ebp, ebx
je 0x41a628
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 0x41a63a
cmp dword [esp + 0x4c], 0x20
je 0x41a644
mov edx, dword [esp + 0x4c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov byte [esp + 0x3c], 0xb
cmp esi, ebx
je 0x41a658
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.00401aa0
mov byte [esp + 0x3c], 5
lea ecx, [esp + 0x2c]
call fcn.00401aa0
mov byte [esp + 0x3c], 4
lea ecx, [esp + 0x20]
call fcn.00401aa0
mov dword [esp + 0x3c], 0xffffffff
jmp 0x41a690
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