Function at 0x10002bf0
Capabilities:
Delete registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x370
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x340], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x344], eax
test byte [0x1000a01c], 8
jne 0x10002d70
mov eax, dword [ebp - 0x344]
test eax, eax
je 0x10003882
mov dword [eax], 0
lea eax, [ebp - 0x33c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftActiveMoviedevenum
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x10002e30
mov eax, dword [ebp - 0x340]
mov eax, dword [eax]
cmp eax, dword [0x1000fbf0]
je 0x10002d30
cmp eax, dword [0x1000ffe0]
je 0x10002ea0
cmp eax, dword [0x10010040]
je 0x100032b8
cmp eax, dword [0x1000f830]
je 0x100035f8
cmp eax, dword [0x1000f810]
je 0x10003410
mov edi, dword [ebp - 0x344]
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._enum_moniker_create
mov ebx, eax
test eax, eax
js 0x10002d1a
mov eax, dword [edi]
lea ecx, [ebp - 0x248]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
test eax, eax
jne 0x10002e70
mov eax, dword [ebp - 0x248]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [edi]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov esi, dword [ebp - 0x340]
mov ecx, dword [0x1000fbf4]
cmp dword [esi + 4], ecx
jne 0x10002c7d
mov ecx, dword [0x1000fbf8]
cmp dword [esi + 8], ecx
jne 0x10002c7d
mov ecx, dword [0x1000fbfc]
cmp dword [esi + 0xc], ecx
jne 0x10002c7d
call sym._register_legacy_filters
jmp 0x10002cad
mov eax, dword [ebp - 0x340]
test eax, eax
je 0x10003878
shr eax, 0x10
je 0x100035d8
mov edi, dword [ebp - 0x340]
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x1000c05c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov dword [esp + 0x1c], esi
mov esi, dword [ebp - 0x344]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.iface__p__class__s__out__p__flags__lx._n
mov dword [esp + 8], str.devenum_factory_CreateClassEnumerator
mov dword [esp + 4], 0x1000a01c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002c2b
mov eax, dword [ebp - 0x340]
lea ebx, [ebp - 0x296]
mov dword [esp + 8], 0x27
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov eax, dword [ebp - 0x33c]
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
jmp 0x10002c69
mov esi, dword [ebp - 0x344]
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [esi], 0
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov esi, dword [ebp - 0x340]
mov ecx, dword [0x1000ffe4]
cmp dword [esi + 4], ecx
jne 0x10002c89
mov ecx, dword [0x1000ffe8]
cmp dword [esi + 8], ecx
jne 0x10002c89
mov ecx, dword [0x1000ffec]
cmp dword [esi + 0xc], ecx
jne 0x10002c89
mov dword [esp + 4], 0
mov dword [esp], sym._register_dsound_devices_16
call sym._DirectSoundEnumerateW_8
sub esp, 8
mov ebx, eax
test eax, eax
js 0x10002d1a
mov dword [ebp - 0x328], 0
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2d8], edx
add eax, 4
cmp eax, 0x1c
jb 0x10002f02
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
call dword [sym.imp.winmm.dll_waveOutGetNumDevs]
mov dword [ebp - 0x34c], eax
test eax, eax
js 0x100030c0
mov eax, dword [sym.imp.winmm.dll_waveOutGetDevCapsW]
lea edi, [ebp - 0x248]
mov dword [esp + 8], 0x54
mov ebx, 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], 0xffffffff
mov dword [ebp - 0x350], eax
call eax
lea eax, [ebp - 0x328]
mov edx, str.Default_WaveOut_Device
mov dword [ebp - 0x348], eax
sub esp, 0xc
jmp 0x10002fc8
mov dword [esp + 8], 0x54
mov eax, dword [ebp - 0x350]
mov dword [esp + 4], edi
mov dword [esp], ebx
call eax
lea edx, [ebp - 0x240]
sub esp, 0xc
mov eax, dword [ebp - 0x348]
mov dword [esp], edx
mov ecx, 0x10010000
mov dword [esp + 4], eax
mov eax, 0x1000ffe0
call sym._register_codec
test eax, eax
js 0x100030b1
lea eax, [ebp - 0x2d8]
lea edx, [ebp - 0x2f8]
mov dword [ebp - 0x2f8], 2
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x318]
lea esi, [ebp - 0x308]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x2f4], 0x200000
mov dword [ebp - 0x2f0], 1
mov dword [ebp - 0x2d8], 2
mov dword [ebp - 0x2d0], 1
mov dword [ebp - 0x318], 0x1000ea40
mov dword [ebp - 0x314], 0x10016a48
call sym._write_filter_data
mov eax, 3
mov dword [ebp - 0x300], ebx
mov word [ebp - 0x308], ax
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], str.WaveOutId
mov dword [esp], eax
call dword [ecx + 0x10]
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x328]
sub esp, 4
test eax, eax
je 0x100030b1
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
add ebx, 1
cmp dword [ebp - 0x34c], ebx
jne 0x10002fa8
mov dword [ebp - 0x328], 0
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2d8], edx
add eax, 4
cmp eax, 0x1c
jb 0x100030ce
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
call dword [sym.imp.winmm.dll_midiOutGetNumDevs]
mov dword [ebp - 0x350], eax
test eax, eax
js 0x10002cad
lea edi, [ebp - 0x248]
lea eax, [ebp - 0x328]
mov ebx, 0xffffffff
mov dword [ebp - 0x348], eax
lea esi, [ebp - 0x240]
mov dword [ebp - 0x34c], edi
jmp 0x1000324f
mov eax, dword [ebp - 0x348]
mov dword [esp], esi
mov ecx, 0x100100d0
mov edx, esi
mov dword [esp + 4], eax
mov eax, 0x1000fae0
call sym._register_codec
test eax, eax
js 0x10003240
mov dword [ebp - 0x2f8], 2
mov eax, 0x200000
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2d8]
lea edx, [ebp - 0x2f8]
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x318]
lea edi, [ebp - 0x308]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x2f0], 1
mov dword [ebp - 0x2d8], 2
mov dword [ebp - 0x2d0], 1
mov dword [ebp - 0x318], 0x1000e9c0
mov dword [ebp - 0x314], 0x10016a48
call sym._write_filter_data
mov eax, 3
mov dword [ebp - 0x300], ebx
mov word [ebp - 0x308], ax
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MidiOutId
mov dword [esp], eax
call dword [ecx + 0x10]
sub esp, 0xc
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x328]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
add ebx, 1
cmp dword [ebp - 0x350], ebx
je 0x10002cad
mov eax, dword [ebp - 0x34c]
mov dword [esp + 8], 0x54
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.winmm.dll_midiOutGetDevCapsW]
sub esp, 0xc
cmp ebx, 0xffffffff
jne 0x10003158
mov eax, dword [ebp - 0x348]
mov ecx, 0x100100d0
mov edx, str.Default_MidiOut_Device
mov dword [esp], str.Default_MidiOut_Device
mov dword [esp + 4], eax
mov eax, 0x1000fae0
call sym._register_codec
test eax, eax
js 0x10003240
mov dword [ebp - 0x2f8], 2
mov eax, 0x800000
jmp 0x1000318d
mov esi, dword [ebp - 0x340]
mov ecx, dword [0x10010044]
cmp dword [esi + 4], ecx
jne 0x10002c95
mov ecx, dword [0x10010048]
cmp dword [esi + 8], ecx
jne 0x10002c95
mov ecx, dword [0x1001004c]
cmp dword [esi + 0xc], ecx
jne 0x10002c95
mov dword [ebp - 0x308], 0
xor ebx, ebx
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.winmm.dll_waveInGetNumDevs]
mov dword [ebp - 0x348], eax
test eax, eax
jle 0x10002cad
lea edi, [ebp - 0x248]
lea esi, [ebp - 0x240]
nop
mov dword [esp + 8], 0x50
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.winmm.dll_waveInGetDevCapsW]
lea eax, [ebp - 0x308]
mov ecx, 0x10010010
mov edx, esi
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, 0x10010040
mov dword [esp], esi
call sym._register_codec
test eax, eax
js 0x100033f7
mov eax, dword [ebp - 0x308]
lea edx, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 2
mov dword [ebp - 0x2d4], 0x200000
call sym._write_filter_data
mov eax, 3
mov dword [ebp - 0x2f0], ebx
lea ecx, [ebp - 0x2f8]
mov word [ebp - 0x2f8], ax
mov eax, dword [ebp - 0x308]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.WaveInId
mov dword [esp], eax
call dword [edx + 0x10]
lea eax, [ebp - 0x2f8]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x308]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
add ebx, 1
cmp dword [ebp - 0x348], ebx
jne 0x10003340
jmp 0x10002cad
mov eax, dword [ebp - 0x340]
mov esi, dword [0x1000f814]
cmp dword [eax + 4], esi
jne 0x10002cad
mov esi, dword [0x1000f818]
cmp dword [eax + 8], esi
jne 0x10002cad
mov esi, dword [0x1000f81c]
cmp dword [eax + 0xc], esi
jne 0x10002cad
mov dword [ebp - 0x338], 0
xor ebx, ebx
xor edx, edx
xor eax, eax
nop
lea esi, [esi]
mov dword [ebp + eax - 0x2f8], edx
add eax, 4
cmp eax, 0x1c
jb 0x10003458
lea edi, [ebp - 0x248]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x348], edi
lea esi, [ebp - 0x328]
mov edi, eax
lea esi, [esi]
mov eax, dword [ebp - 0x348]
mov dword [esp + 0x10], 0x20
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._capGetDriverDescriptionW_20
sub esp, 0x14
test eax, eax
je 0x100035c2
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.video_d
mov dword [esp + 4], 7
mov dword [esp], esi
call sym._swprintf
lea eax, [ebp - 0x338]
mov dword [esp], edi
mov edx, esi
mov dword [esp + 4], eax
mov ecx, 0x1000f840
mov eax, 0x1000f810
call sym._register_codec
test eax, eax
js 0x100035c2
lea eax, [ebp - 0x2f8]
lea edx, [ebp - 0x308]
mov dword [ebp - 0x308], 2
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x334]
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x304], 0x200000
mov dword [ebp - 0x300], 1
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f0], 1
mov dword [ebp - 0x334], str.vids
mov dword [ebp - 0x330], 0x1000ee20
call sym._write_filter_data
mov eax, 3
mov dword [ebp - 0x310], ebx
lea edx, [ebp - 0x318]
mov word [ebp - 0x318], ax
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], str.VFWIndex
mov dword [esp], eax
call dword [ecx + 0x10]
lea edx, [ebp - 0x318]
sub esp, 0xc
mov dword [esp], edx
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x338]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
add ebx, 1
cmp ebx, 0xa
jne 0x10003488
jmp 0x10002cad
movzx eax, word [ebp - 0x340]
mov dword [esp], 0x1000c04b
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
jmp 0x10002def
mov esi, dword [ebp - 0x340]
mov ecx, dword [0x1000f834]
cmp dword [esi + 4], ecx
jne 0x10002ca1
mov ecx, dword [0x1000f838]
cmp dword [esi + 8], ecx
jne 0x10002ca1
mov ecx, dword [0x1000f83c]
cmp dword [esi + 0xc], ecx
jne 0x10002ca1
lea edi, [ebp - 0x2d8]
mov ecx, 0xe
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x34c], edi
lea esi, [ebp - 0x334]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x248]
mov dword [ebp - 0x338], 0
jmp 0x1000384e
mov eax, dword [ebp - 0x240]
mov dword [esp + 8], 4
xor ecx, ecx
mov dword [esp], 0x63646976
movzx edx, al
mov dword [esp + 4], eax
mov word [ebp - 0x334], dx
mov edx, eax
shr dx, 8
mov word [ebp - 0x32c], cx
mov word [ebp - 0x332], dx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
shr dx, 8
mov word [ebp - 0x330], cx
mov word [ebp - 0x32e], dx
call sym._ICOpen_12
sub esp, 0xc
mov dword [ebp - 0x348], eax
mov dword [esp + 8], 0x238
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._ICGetInfo_12
mov edx, dword [ebp - 0x348]
sub esp, 0xc
mov dword [esp], edx
call sym._ICClose_4
lea eax, [ebp - 0x338]
mov ecx, 0x10010120
mov edx, esi
sub esp, 4
mov dword [esp + 4], eax
lea eax, [ebp - 0x210]
mov dword [esp], eax
mov eax, 0x1000f830
call sym._register_codec
test eax, eax
js 0x1000384b
mov eax, dword [ebp - 0x34c]
lea edx, [ebp - 0x308]
mov dword [ebp - 0x308], 2
mov dword [ebp - 0x304], 0x200000
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x2cc], eax
mov eax, dword [0x1000eda4]
mov dword [ebp - 0x300], 2
mov dword [ebp - 0x2f4], eax
mov eax, dword [0x1000eda8]
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2f0], eax
mov eax, dword [0x1000edac]
mov dword [ebp - 0x2d0], 1
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x318], str.vids
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x2f8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x310]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x2bc], 8
mov dword [ebp - 0x2b4], 1
mov dword [ebp - 0x310], str.vids
mov dword [ebp - 0x30c], 0x10016a48
call sym._write_filter_data
mov edx, 8
mov dword [esp], esi
mov word [ebp - 0x328], dx
call dword [sym.imp.oleaut32.dll_SysAllocString]
lea edx, [ebp - 0x328]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x338]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], str.FccHandler
mov dword [esp], eax
call dword [ecx + 0x10]
lea edx, [ebp - 0x328]
sub esp, 0xc
mov dword [esp], edx
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x338]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
add ebx, 1
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 0x63646976
call sym._ICInfo_12
sub esp, 0xc
test eax, eax
jne 0x10003660
jmp 0x10002cad
mov eax, 0x1000c044
jmp 0x10002def
mov ebx, 0x80004003
jmp 0x10002d1a