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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54b9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40a3ab
push 0x564f30
lea ecx, [esp + 0x1c]
call fcn.00404670
push 0x564f30
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], 0
call fcn.00404670
mov byte [esp + 0x48], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push esi
call edx
test eax, eax
jl 0x40a3cc
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + 0x14]
push eax
call fcn.00410cd0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
lea edi, [ebx + 0xb4]
push edi
push 0
push esi
call eax
test eax, eax
jl 0x40a3cc
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x566b60
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x40a3cc
mov ecx, dword [esp + 0x34]
lea esi, [ebx + 8]
push ecx
mov ecx, esi
call fcn.00410cd0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.ole32.dll_PropVariantClear]
lea ecx, [ebx + 0xc]
push esi
call fcn.00404ff0
push 0x564f30
push str.Realtek
push esi
call fcn.004103e0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x566b88
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x40a3cc
mov edx, dword [esp + 0x34]
lea ecx, [ebx + 0x10]
push edx
call fcn.00410cd0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov edi, dword [edi]
xor eax, eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ecx, dword [edi]
mov eax, dword [ecx + 0x14]
push 0x5646ec
push edi
call eax
test eax, eax
jl 0x40a248
mov ecx, dword [esp + 0x34]
lea edi, [ebx + 0x18]
push ecx
mov ecx, edi
call fcn.00410cd0
call fcn.00410630
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebx + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
lea edi, [ebx + 4]
push 0x564f30
push edi
call fcn.004108e0
add esp, 8
test al, al
je 0x40a2db
push 0x564f34
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00410800
add esp, 0xc
lea ecx, [ebx + 0x10]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x54], 2
call fcn.00410740
add esp, 0xc
push 0x564f3c
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x54], 3
call fcn.00410800
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x4c], 4
call fcn.00404fd0
lea ecx, [esp + 0x20]
call fcn.00401640
lea ecx, [esp + 0x24]
call fcn.00401640
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.00401640
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x562d88
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x40a32e
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00410cd0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.ole32.dll_PropVariantClear]
lea eax, [ebx + 0x68]
lea edi, [esp + 0x18]
call fcn.00422c80
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x56260c
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x40a36e
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
mov dword [ebx + 0x78], ecx
call dword [sym.imp.ole32.dll_PropVariantClear]
mov edi, dword [ebp + 0xc]
test edi, edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x160], eax
je 0x40a3c2
test dword [edi + 0x34], 0x200000
je 0x40a3c2
mov ecx, str.Lenovo_USB
lea esi, [ebx + 4]
call fcn.00410600
cmp eax, 0xffffffff
je 0x40a3c2
lea ecx, [esp + 0x14]
call fcn.00401640
lea ecx, [esp + 0x18]
call fcn.00401640
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call fcn.0040a620
test eax, eax
jge 0x40a43a
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [ebx + 0x160], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
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 0x40a423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
test edi, edi
je 0x40a45e
cmp dword [edi + 0x4e8], 0
je 0x40a45e
mov ecx, dword [edi + 0x4e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
push ebx
call eax
cmp dword [ebx + 0x28], 0
je 0x40a399
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call edx
test eax, eax
je 0x40a49e
lea edi, [esp + 0x14]
call fcn.00410630
mov ecx, str.DIGITALMICWAVE
mov esi, edi
call fcn.00410600
cmp eax, 0xffffffff
je 0x40a49e
mov dword [ebx + 0x158], 1
push ebx
call fcn.0040b040
test eax, eax
jne 0x40a4af
mov edi, ebx
call fcn.0046eb40
mov esi, ebx
call fcn.0040c650
mov eax, ebx
call fcn.0040f7f0
lea edi, [ebx + 0x15c]
push str.SOFTWARERealtekRealtekEffects
mov ecx, edi
mov dword [ebx + 0x158], eax
call fcn.004049b0
push str.AP_
mov ecx, edi
call fcn.00410cd0
lea esi, [ebx + 0x14]
push esi
mov ecx, edi
call fcn.00404530
lea edi, [ebx + 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio_
mov ecx, edi
call fcn.004049b0
cmp dword [ebx + 0x24], 0
mov eax, str.Render_
jne 0x40a50b
mov eax, str.Capture_
push eax
mov ecx, edi
call fcn.00410cd0
mov ecx, 0x564974
call fcn.00410600
add eax, 2
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00410690
push eax
mov ecx, edi
mov byte [esp + 0x4c], 5
call fcn.00404530
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.00401640
push 0x56497c
mov ecx, edi
call fcn.00410cd0
push 0x564980
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.00410800
add esp, 0xc
push eax
lea ecx, [ebx + 0x20]
mov byte [esp + 0x4c], 6
call fcn.00404fd0
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.00401640
push str.FxProperties
mov ecx, edi
call fcn.00410cd0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40a5f3
mov eax, dword [ebx + 0x18]
or edi, 0xffffffff
mov dword [ebx + 0x38], edi
mov edx, dword [esi + 0x4bc]
push edx
push eax
call fcn.00522186
add esp, 8
test eax, eax
jne 0x40a5f0
mov esi, dword [esi + 0x4d0]
xor edi, edi
test esi, esi
je 0x40a5f3
nop
test esi, esi
mov eax, esi
je 0x40a5eb
mov eax, dword [eax + 8]
test eax, eax
mov esi, dword [esi]
je 0x40a5e2
mov eax, dword [eax]
mov ecx, dword [ebx + 0x18]
push eax
push ecx
call fcn.00522186
add esp, 8
test eax, eax
jne 0x40a5f0
add edi, 1
test esi, esi
jne 0x40a5c0
jmp 0x40a5f3
call fcn.00504221
mov dword [ebx + 0x38], edi
lea ecx, [esp + 0x14]
call fcn.00401640
lea ecx, [esp + 0x18]
call fcn.00401640
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8