Function at 0x1000bcd0
Capabilities:
Query or enumerate registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
lea eax, [ebp - 0x88]
push esi
push ebx
push ecx
sub esp, 0xa4
mov ebx, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionMMDevicesAudio
mov dword [esp], 0x80000002
call ebx
sub esp, 0x24
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x1000bda0
mov eax, dword [ebp - 0x88]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov esi, dword [0x10021010]
sub esp, 4
mov dword [esp], esi
call ebx
mov dword [0x10021010], 0
mov dword [0x10021014], 0
sub esp, 4
test byte [0x10015114], 4
jne 0x1000bfb7
mov dword [ebp - 0x8c], 0x80004005
jmp 0x1000bf88
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x10021010
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Capture
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call ebx
sub esp, 0x24
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x1000bd45
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x10021014
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Render
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call ebx
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x8c], eax
mov edi, eax
mov eax, dword [ebp - 0x88]
sub esp, 0x24
mov dword [esp], eax
call ebx
mov esi, dword [0x10021010]
sub esp, 4
test edi, edi
jne 0x1000bd5f
mov dword [ebp - 0x90], 1
lea edi, [ebp - 0x5e]
xor ebx, ebx
lea esi, [esi]
nop
lea eax, [ebp - 0x84]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x84], 0x27
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
cmp eax, 0x103
je 0x1000bf80
add ebx, 1
test eax, eax
jne 0x1000be88
lea eax, [ebp - 0x70]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
sub esp, 8
test eax, eax
js 0x1000be88
lea eax, [ebp - 0x80]
mov ecx, 0x1001f040
mov dword [esp], eax
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x70]
call fcn.10009cf0
test eax, eax
js 0x1000be88
cmp word [ebp - 0x80], 0x1f
jne 0x1000be88
mov dword [esp + 4], 0
lea edx, [ebp - 0x70]
mov dword [esp], 4
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x78]
call fcn.1000aa80
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x1000be88
cmp dword [0x10021010], esi
je 0x1000bfa0
mov eax, dword [ebp - 0x8c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov esi, dword [0x10021014]
xor ebx, ebx
mov dword [ebp - 0x90], 0
jmp 0x1000be88
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xc], str.Couldnt_create_key:__lu_n
mov dword [esp + 8], str.load_devices_from_reg
mov dword [esp + 4], 0x10015114
mov dword [esp], 2
mov dword [esp + 0x10], eax
call fcn.10007550
jmp 0x1000bd88