Function at 0x42da50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54a9bd
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0xb0], 3
call fcn.005081a0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42dac5
push 0x80004005
call fcn.004021d0
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 + 0xb0], 4
call fcn.005081a0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42daf7
push 0x80004005
call fcn.004021d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xb0], 5
xor eax, eax
push 0xa
lea ecx, [esp + 0x8c]
mov word [esp + 0x58], bx
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov dword [esp + 0x62], eax
mov word [esp + 0x66], ax
mov word [esp + 0x78], bx
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov word [esp + 0x86], ax
mov dword [esp + 0x54], ebx
call fcn.00506d99
mov dword [esp + 0x88], 0x56d400
mov byte [esp + 0xb0], 6
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x78]
push eax
call edi
cmp dword [ebp + 0xc], ebx
jne 0x42dd22
cmp dword [ebp + 8], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0x66], ebx
mov dword [esp + 0x6a], ebx
mov dword [esp + 0x6e], ebx
mov word [esp + 0x72], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
push ebx
mov ecx, 0x5c2008
jne 0x42dbd6
push 0x56d348
jmp 0x42dbdb
push str.CaptureDefaultFixed
push str.General
call fcn.0050b2fe
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push str.LastFixDefaultTime
push str.General
mov ecx, 0x5c2008
mov esi, eax
call fcn.0050b6c9
test eax, eax
je 0x42dc95
cmp dword [esp + 0x2c], 0x10
jne 0x42dc80
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x78], edx
call edi
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x42dc80
push ebx
push 0x56d348
push str.General
mov ecx, 0x5c2008
call fcn.0050b367
push ebx
push str.CaptureDefaultFixed
push str.General
mov ecx, 0x5c2008
call fcn.0050b367
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x42dc95
push eax
call fcn.004fe90e
add esp, 4
mov dword [esp + 0x1c], ebx
push 0x10
lea ecx, [esp + 0x78]
push ecx
push str.LastFixDefaultTime
push str.General
mov ecx, 0x5c2008
call fcn.0050b487
cmp esi, 1
jne 0x42dd22
lea ecx, [esp + 0x88]
mov byte [esp + 0xb0], 5
call fcn.00506dbc
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dcf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb0], 3
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 0x42e1f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42e1f9
lea eax, [esp + 0x28]
push eax
push 0x56631c
push 0x17
push ebx
push 0x5662cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x42dd73
lea ecx, [esp + 0x88]
mov byte [esp + 0xb0], 5
call fcn.00506dbc
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42dce5
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
push 9
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x42dd3e
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x42dd3e
xor esi, esi
cmp dword [esp + 0x34], ebx
mov dword [esp + 0x2c], esi
jbe 0x42e022
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42ddc7
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x42e00d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
jl 0x42e00d
push 0x566c94
lea ecx, [esp + 0x18]
call fcn.00406220
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040aff0
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x42e00d
push str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio_
lea ecx, [esp + 0x1c]
call fcn.00406220
cmp dword [ebp + 8], ebx
mov eax, str.Render_
je 0x42de5b
mov eax, str.Capture_
push eax
lea ecx, [esp + 0x1c]
call fcn.0040aff0
mov ecx, 0x56a3cc
lea esi, [esp + 0x14]
call fcn.00410fe0
add eax, 2
push eax
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call fcn.00411070
mov byte [esp + 0xb0], 7
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00405e50
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 6
call fcn.004592f0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x42dec5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x20019
lea esi, [esp + 0x34]
call fcn.00411620
test eax, eax
jne 0x42e00b
push str.Role:0
mov edx, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
push edx
lea eax, [esp + 0x58]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x58], 0x10
call fcn.0042a0a0
test eax, eax
jne 0x42e00b
push 0x10
call fcn.004fe8de
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x42e00b
call fcn.005081a0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x42dabb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [edi], eax
call fcn.00406620
lea ebx, [edi + 4]
push ebx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], eax
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x42dfab
lea esp, [esp]
test esi, esi
mov dword [esp + 0x48], esi
mov eax, esi
je 0x42e10c
mov eax, dword [eax + 8]
test eax, eax
mov esi, dword [esi]
je 0x42dfa7
push ebx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
je 0x42dfd9
test esi, esi
jne 0x42df80
push edi
lea ecx, [esp + 0x8c]
call fcn.00506e4a
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, 1
cmp eax, esi
jne 0x42dfed
cmp dword [esp + 0x1c], esi
jne 0x42dff3
mov dword [esp + 0x20], esi
jmp 0x42e00b
mov ecx, dword [esp + 0x48]
push edi
push ecx
lea ecx, [esp + 0x90]
call fcn.00506e73
jmp 0x42dfb8
cmp dword [esp + 0x1c], esi
je 0x42e00b
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, esi
jne 0x42e00b
mov dword [esp + 0x3c], 1
xor ebx, ebx
mov esi, dword [esp + 0x2c]
add esi, 1
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x2c], esi
jb 0x42ddb3
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42e036
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x20], ebx
je 0x42e0f6
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x20]
push eax
push 0x56a87c
push 1
push ebx
push 0x56a81c
mov byte [esp + 0xc4], 8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x42e0de
mov edi, dword [esp + 0x8c]
cmp edi, ebx
je 0x42e0de
cmp edi, ebx
mov eax, edi
je 0x42e10c
mov esi, dword [eax + 8]
cmp esi, ebx
mov edi, dword [edi]
je 0x42e0da
cmp dword [esi + 0xc], 1
jne 0x42e0da
lea ecx, [esp + 0x40]
push ecx
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x42e0d2
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
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 + 0x20]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x30]
push ecx
call eax
mov eax, dword [esp + 0x20]
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 0x42e073
mov byte [esp + 0xb0], 6
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x42e0f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp + 8], ebx
jne 0x42e111
xor eax, eax
cmp dword [esp + 0x3c], ebx
sete al
push eax
push 0x56d348
jmp 0x42e120
jmp fcn.00507caf
xor ecx, ecx
cmp dword [esp + 0x3c], ebx
sete cl
push ecx
push str.CaptureDefaultFixed
push str.General
mov ecx, 0x5c2008
call fcn.0050b367
mov esi, dword [esp + 0x8c]
cmp esi, ebx
je 0x42e17a
lea ebx, [ebx]
cmp esi, ebx
mov eax, esi
je 0x42e10c
mov edi, dword [eax + 8]
cmp edi, ebx
mov esi, dword [esi]
je 0x42e176
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 0x42e16d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.004fe90e
add esp, 4
cmp esi, ebx
jne 0x42e140
lea ecx, [esp + 0x88]
call fcn.00506c7f
lea ecx, [esp + 0x88]
mov byte [esp + 0xb0], 5
call fcn.00506dbc
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e1c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb0], 3
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 0x42e1ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x42e1f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0xb0], 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42e211
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x42e229
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42e244
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret