Function at 0x4f9ad0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x828
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x824], eax
push ebp
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push 0x108
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionMMDevicesAudioCapture
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f9e4f
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov dword [esp + 0x24], ebp
lea ebx, [ebp + 4]
mov eax, dword [esp + 0x24]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x448]
push edx
push eax
push ecx
mov dword [esp + 0x50], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4f9e1a
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x38]
push 0x200
push eax
xor edi, edi
call fcn.0052225e
push str.Properties
lea ecx, [esp + 0x44]
push 0x200
push ecx
call fcn.005221e4
mov ecx, dword [esp + 0x38]
add esp, 0x18
lea edx, [esp + 0x18]
push edx
push 0x101
push ebp
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f9e22
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.b3f8fa53_0004_438e_9003_51a46e139bfc_6
push edx
mov dword [esp + 0x28], 0x400
call esi
test eax, eax
jne 0x4f9bed
lea eax, [esp + 0x34]
push 0x57a59c
push eax
call fcn.00522186
add esp, 8
test eax, eax
je 0x4f9bed
mov edi, 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebp
je 0x4f9e22
push str.FXProperties
lea edx, [esp + 0x438]
push 0x200
push edx
call fcn.005221e4
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x101
push ebp
lea ecx, [esp + 0x440]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f9e22
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_6
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9e0d
mov ecx, dword [esp + 0x14]
or dword [0x5bbc68], ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_0
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9ca8
mov eax, dword [esp + 0x14]
or dword [0x5bbc54], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_1
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9cd6
mov edx, dword [esp + 0x14]
or dword [0x5bbc58], edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_2
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9d04
mov ecx, dword [esp + 0x14]
or dword [0x5bbc5c], ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_4
push edx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9d31
mov eax, dword [esp + 0x14]
mov dword [0x5bbc64], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_3
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9d5f
mov edx, dword [esp + 0x14]
or dword [0x5bbc60], edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_7
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9d8d
mov ecx, dword [esp + 0x14]
mov dword [0x5bbc74], ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.b7eae14c_6c01_446f_b83f_3181e129b6dd_8
push edx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9ddf
cmp dword [esp + 0x14], ebp
je 0x4f9ddf
mov dword [0x5bbc78], 0x80000000
mov dword [0x5bbc68], ebp
mov dword [0x5bbc54], ebp
mov dword [0x5bbc58], ebp
mov dword [0x5bbc5c], ebp
mov dword [0x5bbc60], ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push str.1da5d803_d492_4edd_8c23_e0c0ffee7f0e_5
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4f9e0d
mov ecx, dword [esp + 0x14]
mov dword [0x5bbc7c], ecx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f9e22
mov dword [esp + 0x28], 1
add dword [esp + 0x24], 1
cmp dword [esp + 0x28], ebp
je 0x4f9b26
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x2c], ebp
je 0x4f9e4c
mov edi, 0x5bbc50
call fcn.004f94b0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x828]
pop ebp
xor ecx, esp
call fcn.0052151a
add esp, 0x828
ret