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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54bdc8
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 0x4eeab3
push 0x564f30
lea ecx, [esp + 0x18]
call fcn.00404670
mov dword [esp + 0x48], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push esi
call edx
test eax, eax
jl 0x4eead4
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + 0x14]
push eax
mov dword [esp + 0x2c], ecx
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 0x4eead4
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 0x4eead4
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 0x4eead4
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 0x4ee959
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 0x4ee9ec
push 0x564f34
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00410800
add esp, 0xc
lea ecx, [ebx + 0x10]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x54], 1
call fcn.00410740
add esp, 0xc
push 0x564f3c
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x54], 2
call fcn.00410800
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x4c], 3
call fcn.00404fd0
lea ecx, [esp + 0x18]
call fcn.00401640
lea ecx, [esp + 0x20]
call fcn.00401640
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
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 0x4eea3f
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410cd0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.ole32.dll_PropVariantClear]
lea eax, [ebx + 0x68]
lea edi, [esp + 0x14]
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 0x4eea7f
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 0x4eeaca
test dword [edi + 0x34], 0x200000
je 0x4eeaca
mov ecx, str.Lenovo_USB
lea esi, [ebx + 4]
call fcn.00410600
cmp eax, 0xffffffff
je 0x4eeaca
lea ecx, [esp + 0x14]
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 0x4eeb1d
mov dword [esp + 0x48], 0xffffffff
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 0x4eeb06
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
test edi, edi
je 0x4eeb8b
mov dword [ebx + 0x38], 0xffffffff
mov esi, dword [edi + 0x4d0]
test esi, esi
mov dword [esp + 0x18], 0
je 0x4eeb8b
lea ebx, [ebx]
test esi, esi
mov eax, esi
je 0x4eeb6d
mov edi, dword [eax + 8]
test edi, edi
mov esi, dword [esi]
je 0x4eeb62
mov eax, dword [edi]
mov ecx, dword [ebx + 0x18]
push eax
push ecx
call fcn.00522186
add esp, 8
test eax, eax
jne 0x4eeb72
add dword [esp + 0x18], 1
test esi, esi
jne 0x4eeb40
jmp 0x4eeb88
call fcn.00504221
mov ecx, dword [esp + 0x18]
add edi, 4
mov dword [ebx + 0x38], ecx
push edi
lea ecx, [ebx + 0x220]
call fcn.00404fd0
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
test edi, edi
je 0x4eebaf
cmp dword [edi + 0x4e8], 0
je 0x4eebaf
mov ecx, dword [edi + 0x4e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
push ebx
call eax
cmp dword [ebx + 0x28], 0
je 0x4eeaaa
push ebx
call fcn.0040b040
test eax, eax
jne 0x4eebca
mov edi, ebx
call fcn.0046eb40
mov esi, ebx
call fcn.0040c650
lea edi, [ebx + 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio_
mov ecx, edi
call fcn.004049b0
cmp dword [ebx + 0x24], 0
mov eax, str.Render_
jne 0x4eebf0
mov eax, str.Capture_
push eax
mov ecx, edi
call fcn.00410cd0
mov esi, dword [esp + 0x28]
mov ecx, 0x564974
call fcn.00410600
add eax, 2
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00410690
push eax
mov ecx, edi
mov byte [esp + 0x4c], 4
call fcn.00404530
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0
call fcn.00401640
push 0x56497c
mov ecx, edi
call fcn.00410cd0
push str.FxProperties
mov ecx, edi
call fcn.00410cd0
lea ecx, [esp + 0x14]
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