Function at 0x429600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55465d
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0xb8], 3
call fcn.0050d22b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x429675
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xb8], 4
call fcn.0050d22b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4296a7
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xb8], 5
xor eax, eax
push 0xa
lea ecx, [esp + 0x94]
mov word [esp + 0x60], bx
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov word [esp + 0x6e], ax
mov word [esp + 0x80], bx
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov dword [esp + 0x8a], eax
mov word [esp + 0x8e], ax
mov dword [esp + 0x5c], ebx
call fcn.0050ba5c
mov dword [esp + 0x90], 0x5726c0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb8], 6
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x80]
push eax
call edi
cmp dword [ebp + 0xc], ebx
jne 0x4298e4
cmp dword [ebp + 8], ebx
mov word [esp + 0x6c], bx
mov dword [esp + 0x6e], ebx
mov dword [esp + 0x72], ebx
mov dword [esp + 0x76], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
push ebx
mov ecx, 0x5c9c18
jne 0x429792
push 0x572610
jmp 0x429797
push str.CaptureDefaultFixed
push str.General
call fcn.00510303
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
push str.LastFixDefaultTime
push str.General
mov ecx, 0x5c9c18
mov esi, eax
call fcn.005106ce
test eax, eax
je 0x429854
cmp dword [esp + 0x30], 0x10
jne 0x42983f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x70], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x80], edx
call edi
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x42983f
push ebx
push 0x572610
push str.General
mov ecx, 0x5c9c18
call fcn.0051036c
push ebx
push str.CaptureDefaultFixed
push str.General
mov ecx, 0x5c9c18
call fcn.0051036c
xor esi, esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x429854
push eax
call fcn.0050364e
add esp, 4
mov dword [esp + 0x20], ebx
push 0x10
lea ecx, [esp + 0x80]
push ecx
push str.LastFixDefaultTime
push str.General
mov ecx, 0x5c9c18
call fcn.0051048c
cmp esi, 1
jne 0x4298e4
lea ecx, [esp + 0x90]
mov byte [esp + 0xb8], 5
call fcn.0050ba7f
mov byte [esp + 0xb8], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4298b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429df9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x429df9
lea eax, [esp + 0x2c]
push eax
push 0x56b830
push 0x17
push ebx
push 0x56b7e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x429935
lea ecx, [esp + 0x90]
mov byte [esp + 0xb8], 5
call fcn.0050ba7f
mov byte [esp + 0xb8], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4298a7
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebp + 8]
push 9
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x429900
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x429900
xor esi, esi
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x24], esi
jbe 0x429c22
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov edi, dword [esp + 0x34]
je 0x42998d
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x429c0b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
jl 0x429c0b
push 0x5703b8
lea ecx, [esp + 0x1c]
call fcn.0040c050
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040c0d0
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x429c0b
push str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio_
lea ecx, [esp + 0x20]
call fcn.0040c050
cmp dword [ebp + 8], ebx
mov eax, str.Render_
je 0x429a21
mov eax, str.Capture_
push eax
lea ecx, [esp + 0x20]
call fcn.0040c0d0
mov ecx, 0x57020c
lea esi, [esp + 0x18]
call fcn.0040b9b0
add eax, 2
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0040ba40
mov byte [esp + 0xb8], 7
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0040bfc0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb8], 6
call fcn.00401660
cmp edi, ebx
je 0x429a89
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x429c0b
xor eax, eax
cmp edi, ebx
je 0x429abd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
jne 0x429c0b
xor eax, eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x54]
push edx
push ebx
push str.Role:0
push ecx
mov dword [esp + 0x70], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x429c0b
cmp dword [esp + 0x4c], 3
jne 0x429c0b
push 0x10
call fcn.00503623
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x429c0b
call fcn.0050d22b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x42966b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x18]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [edi], eax
call fcn.00402f40
lea ebx, [edi + 4]
push ebx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov esi, dword [esp + 0x94]
test esi, esi
je 0x429bab
lea esp, [esp]
test esi, esi
mov dword [esp + 0x30], esi
mov eax, esi
je 0x429d0c
mov eax, dword [eax + 8]
test eax, eax
mov esi, dword [esi]
je 0x429ba7
push ebx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
je 0x429bd9
test esi, esi
jne 0x429b80
push edi
lea ecx, [esp + 0x94]
call fcn.0050bb0d
lea edx, [esp + 0x44]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, 1
cmp eax, esi
jne 0x429bed
cmp dword [esp + 0x20], esi
jne 0x429bf3
mov dword [esp + 0x54], esi
jmp 0x429c0b
mov ecx, dword [esp + 0x30]
push edi
push ecx
lea ecx, [esp + 0x98]
call fcn.0050bb36
jmp 0x429bb8
cmp dword [esp + 0x20], esi
je 0x429c0b
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, esi
jne 0x429c0b
mov dword [esp + 0x38], 1
mov esi, dword [esp + 0x24]
add esi, 1
xor ebx, ebx
cmp esi, dword [esp + 0x3c]
mov dword [esp + 0x24], esi
jb 0x429975
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x429c36
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x54], ebx
je 0x429cf6
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x24]
push eax
push 0x570398
push 1
push ebx
push 0x570318
mov byte [esp + 0xcc], 8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x429cde
mov edi, dword [esp + 0x94]
cmp edi, ebx
je 0x429cde
cmp edi, ebx
mov eax, edi
je 0x429d0c
mov esi, dword [eax + 8]
cmp esi, ebx
mov edi, dword [edi]
je 0x429cda
cmp dword [esi + 0xc], 1
jne 0x429cda
lea ecx, [esp + 0x44]
push ecx
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x429cd2
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x30]
push ecx
call eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x30]
push ecx
call eax
mov eax, dword [esp + 0x24]
mov esi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push 2
push esi
push eax
call edx
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
jne 0x429c73
mov byte [esp + 0xb8], 6
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x429cf6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp + 8], ebx
jne 0x429d11
xor eax, eax
cmp dword [esp + 0x38], ebx
sete al
push eax
push 0x572610
jmp 0x429d20
jmp fcn.0050c9ad
xor ecx, ecx
cmp dword [esp + 0x38], ebx
sete cl
push ecx
push str.CaptureDefaultFixed
push str.General
mov ecx, 0x5c9c18
call fcn.0051036c
mov esi, dword [esp + 0x94]
cmp esi, ebx
je 0x429d7a
lea ebx, [ebx]
cmp esi, ebx
mov eax, esi
je 0x429d0c
mov edi, dword [eax + 8]
cmp edi, ebx
mov esi, dword [esi]
je 0x429d76
mov eax, dword [edi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x429d6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0050364e
add esp, 4
cmp esi, ebx
jne 0x429d40
lea ecx, [esp + 0x90]
call fcn.0050b960
lea ecx, [esp + 0x90]
mov byte [esp + 0xb8], 5
call fcn.0050ba7f
mov byte [esp + 0xb8], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x429df9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x429e11
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x429e29
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x429e44
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret