Function at 0x6acc67d0
Capabilities:
Access peb ldr_data
Get process heap flags
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
mov edx, ecx
push ebx
sub esp, 0xdc
mov dword [ebp - 0xac], eax
mov eax, dword [0x6acd00a4]
cmp eax, 0x6acd00a4
je 0x6acc6a20
lea ebx, [eax - 0x40]
jmp 0x6acc6811
mov eax, dword [ebx + 0x40]
lea ebx, [eax - 0x40]
cmp eax, 0x6acd00a4
je 0x6acc6a20
cmp dword [ebx + 0x24], edx
jne 0x6acc6800
mov eax, dword [esi]
lea edi, [ebx + 0x2c]
cmp dword [ebx + 0x2c], eax
jne 0x6acc6800
mov eax, dword [esi + 4]
cmp dword [edi + 4], eax
jne 0x6acc6800
mov eax, dword [esi + 8]
cmp dword [edi + 8], eax
jne 0x6acc6800
mov eax, dword [esi + 0xc]
cmp dword [edi + 0xc], eax
jne 0x6acc6800
mov eax, dword [ebx + 8]
test eax, eax
jle 0x6acc684c
test byte [0x6acd00b4], 4
jne 0x6acc6ab8
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xb0], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xb0]
sub esp, 0xc
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], eax
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x66]
mov dword [esp], edi
mov dword [esp + 8], 0x27
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov edx, dword [ebp - 0xb0]
mov eax, dword [0x6acdd010]
lea ecx, [ebp - 0xa0]
sub esp, 0xc
mov edi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test edx, edx
cmovne eax, dword [0x6acdd00c]
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x66]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xb0]
sub esp, 0x24
test eax, eax
je 0x6acc6950
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6acc6945
test edx, edx
jne 0x6acc6a10
mov dword [0x6acdd004], ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp + 8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.DeviceState
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
lea eax, [ebp - 0x9c]
sub esp, 0x18
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Properties
mov dword [esp], eax
call edi
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xb0]
sub esp, 0x24
test eax, eax
je 0x6acc6aed
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xac], edx
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xac]
sub esp, 4
jmp 0x6acc6930
mov dword [0x6acdd008], ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x48
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xb0], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0xb0]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x6acc6945
lea eax, [ebx + 0xc]
mov dword [ebp - 0xb0], edx
lea edi, [ebx + 0x2c]
mov dword [ebx], sym._MMDevice_QueryInterface_12
mov dword [ebx + 4], 0x6acd3140
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [ebx + 0xc]
mov ecx, dword [0x6acd00a8]
mov edx, dword [ebp - 0xb0]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_mmdevapi_devenum.c:_MMDevice.crst
lea eax, [ebx + 0x40]
mov dword [ebx + 0x40], 0x6acd00a4
mov dword [ebx + 0x44], ecx
mov dword [ecx], eax
mov dword [0x6acd00a8], eax
jmp 0x6acc684c
mov dword [esp + 0xc], str.Modifying_an_MMDevice_with_postitive_reference_count__n
mov dword [esp + 8], str.MMDevice_Create
mov dword [esp + 4], 0x6acd00b4
mov dword [esp], 2
mov dword [ebp - 0xb0], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0xb0]
jmp 0x6acc684c
mov eax, dword [ebp - 0xac]
mov edi, 0x1f
mov word [ebp - 0x98], di
mov dword [ebp - 0x90], eax
mov eax, dword [0x6acdd0b8]
test eax, eax
je 0x6acc6b39
lea edi, [ebp - 0x78]
mov dword [ebp - 0xac], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x6acd2fac
mov dword [esp], esi
call eax
mov edx, dword [ebp - 0xac]
sub esp, 0xc
test eax, eax
jns 0x6acc6cfb
lea edi, [ebp - 0x98]
mov ecx, 0x6acd4004
mov eax, esi
mov dword [ebp - 0xac], edx
mov dword [esp], edi
call sym._MMDevice_SetPropValue
mov dword [esp], edi
mov edx, dword [ebp - 0xac]
mov eax, esi
mov ecx, 0x6acd367c
call sym._MMDevice_SetPropValue
mov dword [esp], edi
mov edx, dword [ebp - 0xac]
mov eax, esi
mov ecx, 0x6acd40b8
call sym._MMDevice_SetPropValue
mov dword [esp], edi
lea eax, [ebp - 0x66]
mov ecx, 0x6acd2f98
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x90], eax
mov eax, esi
call sym._MMDevice_SetPropValue
mov eax, dword [0x6acdd0b8]
mov edx, dword [ebp - 0xac]
test eax, eax
je 0x6acc6bd6
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xac], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x6acd9270
mov dword [esp], esi
call eax
mov edx, dword [ebp - 0xac]
sub esp, 0xc
test eax, eax
jns 0x6acc6d73
xor eax, eax
cmp edx, 1
mov dword [esp], edi
mov ecx, 0x13
sete al
mov word [ebp - 0x98], cx
mov ecx, 0x6acd9270
lea eax, [eax + eax*2 + 1]
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x90], eax
mov eax, esi
call sym._MMDevice_SetPropValue
mov edx, dword [ebp - 0xac]
cmp edx, 1
je 0x6acc6cd6
lea edi, [ebp - 0x88]
mov ecx, 0x6acd92c0
mov eax, esi
mov dword [ebp - 0xac], edx
mov dword [esp], edi
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call sym._MMDevice_GetPropValue
mov edx, dword [ebp - 0xac]
test eax, eax
js 0x6acc6c69
cmp word [ebp - 0x88], 0x13
je 0x6acc6cbf
mov eax, dword [0x6acdd0b8]
test eax, eax
je 0x6acc6cbf
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xac], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x6acd92c0
mov dword [esp], esi
call eax
mov edx, dword [ebp - 0xac]
sub esp, 0xc
test eax, eax
js 0x6acc6cbf
lea eax, [ebp - 0x78]
mov ecx, 0x6acd92c0
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x78]
mov dword [esp], eax
call sym._PropVariantClear_4
mov edx, dword [ebp - 0xac]
sub esp, 4
mov dword [esp], edi
mov dword [ebp - 0xac], edx
call sym._PropVariantClear_4
mov edx, dword [ebp - 0xac]
sub esp, 4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xac], edx
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xac]
sub esp, 4
jmp 0x6acc69ed
mov dword [esp], edi
mov ecx, 0x6acd2fac
mov eax, esi
call sym._MMDevice_SetPropValue
mov dword [esp], edi
call sym._PropVariantClear_4
mov edx, dword [ebp - 0xac]
mov eax, esi
mov ecx, 0x6acd2fac
sub esp, 4
mov dword [ebp - 0x78], 0
mov dword [esp], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call sym._MMDevice_GetPropValue
mov edx, dword [ebp - 0xac]
test eax, eax
js 0x6acc6d57
cmp word [ebp - 0x78], 0x1f
je 0x6acc6d9e
mov dword [esp], edi
mov dword [ebp - 0xac], edx
call sym._PropVariantClear_4
mov edx, dword [ebp - 0xac]
sub esp, 4
jmp 0x6acc6b39
lea eax, [ebp - 0x78]
mov ecx, 0x6acd9270
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x78]
mov dword [esp], eax
call sym._PropVariantClear_4
mov edx, dword [ebp - 0xac]
sub esp, 4
jmp 0x6acc6c0f
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 8], 0x11
add eax, 2
mov dword [esp], str.VID_054CPID_0CE6
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov edx, dword [ebp - 0xac]
test eax, eax
jne 0x6acc6d57
mov dword [ebp - 0x90], str.Wireless_Controller
jmp 0x6acc6d57