Function at 0x10006920
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1a8
test byte [0x10022028], 8
jne 0x10006f4b
mov edi, dword [ebp + 8]
test edi, edi
je 0x10007001
cmp dword [ebp + 0xc], 1
jle 0x10006fe4
mov dword [esp + 4], 0x1f4
mov dword [esp], 0x1e
call dword [sym.imp.ucrtbase.dll_calloc]
mov dword [ebp - 0x180], eax
test eax, eax
je 0x1000701c
lea eax, [ebp - 0x178]
mov dword [esp + 4], str.AVIFileExtensions
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call edi
sub esp, 0xc
test eax, eax
jne 0x1000700b
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x18c], edi
lea esi, [esi]
nop
lea eax, [ebp - 0x170]
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x184]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x178]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x10006bed
lea eax, [ebp - 0x174]
lea edi, [ebp - 0x15c]
mov dword [ebp - 0x174], 0x50
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x170]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x178]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x10006bed
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x10006e80
mov esi, dword [ebp - 0x180]
add eax, 1
mov ebx, 1
mov dword [ebp - 0x188], eax
add esi, 0x1f4
jmp 0x10006a7f
lea eax, [ebx + 1]
add esi, 0x1f4
cmp dword [ebp - 0x17c], ebx
je 0x10006ba8
mov ebx, eax
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x10006a68
cmp dword [ebp - 0x188], ebx
je 0x10006ba8
imul ebx, ebx, 0x1f4
mov eax, dword [ebp - 0x180]
add ebx, eax
lea eax, [ebp - 0x170]
lea edi, [ebp - 0x10c]
mov dword [esp + 4], str._._s
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_wsprintfW]
cmp word [ebx + 0x50], 0
jne 0x10006b78
xor eax, eax
lea ecx, [ebp - 0x10a]
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax + 0x50], dx
add eax, 2
test dx, dx
jne 0x10006ae8
mov eax, dword [ebp - 0x180]
cmp word [eax + 0x50], 0
jne 0x10006b38
mov ebx, dword [ebp - 0x180]
xor eax, eax
lea ecx, [ebp - 0x10a]
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax + 0x50], dx
add eax, 2
test dx, dx
jne 0x10006b18
add dword [ebp - 0x184], 1
jmp 0x100069c0
mov eax, dword [ebp - 0x180]
lea edx, [eax + 0x50]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10006b48
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10006b58
add dword [ebp - 0x184], 1
jmp 0x100069c0
add ebx, 0x50
lea esi, [esi]
nop
add ebx, 2
cmp word [ebx], 0
jne 0x10006b80
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x10006b90
jmp 0x10006af9
cmp dword [ebp - 0x17c], 0x1d
ja 0x10006f93
mov esi, dword [ebp - 0x188]
imul eax, esi, 0x1f4
mov dword [ebp - 0x17c], esi
mov esi, dword [ebp - 0x180]
lea ebx, [esi + eax]
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x10006bd8
jmp 0x10006aad
mov edi, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x178]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x178]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.CLSID
mov dword [esp], 0x80000000
call edi
mov ebx, eax
sub esp, 0xc
mov eax, dword [ebp - 0x180]
test ebx, ebx
jne 0x10006fee
lea edi, [eax + 0x50]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x184
mov dword [esp + 8], eax
mov eax, dword [0x10035014]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x194], eax
call eax
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x184], 0
sub esp, 0x10
lea edx, [eax + 1]
mov dword [ebp - 0x190], esi
nop
movzx eax, word [edi]
mov dword [ebp - 0x174], edx
mov word [ebp - 0x188], ax
test ax, ax
je 0x10006e2c
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10006ca0
sub eax, edi
sar eax, 1
add eax, edx
add eax, 1
cmp eax, dword [ebp + 0xc]
jge 0x10006e3a
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ebx, [eax + edx*2]
sub esi, edx
mov edx, edi
mov ecx, esi
mov eax, ebx
cmp esi, 1
jbe 0x10006da7
mov dword [ebp - 0x18c], esi
jmp 0x10006cf2
sub ecx, 1
add eax, 2
add edx, 2
mov word [eax - 2], si
cmp ecx, 1
je 0x10006cfa
movzx esi, word [edx]
test si, si
jne 0x10006ce0
mov esi, dword [ebp - 0x18c]
xor ecx, ecx
cmp word [ebp - 0x188], 0
mov word [eax], cx
je 0x10006dbd
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10006d18
sub eax, edi
lea edx, [eax + 2]
sar eax, 1
add eax, 1
sub esi, eax
mov dword [ebp - 0x174], eax
lea eax, [ebx + edx]
add dword [ebp - 0x184], 1
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp + 0xc], esi
cmp dword [ebp - 0x17c], eax
jb 0x10006e94
lea eax, [ebp - 0x174]
lea ebx, [ebp - 0x10c]
mov dword [ebp - 0x174], 0x100
mov dword [esp + 0xc], eax
lea eax, [edi + 0x1a4]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x178]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x10006dd0
mov eax, dword [ebp - 0x174]
lea edx, [eax + 1]
add edi, 0x1f4
jmp 0x10006c80
test esi, esi
jne 0x10006d00
cmp word [ebp - 0x188], 0
jne 0x10006d13
mov eax, 1
mov edx, 2
jmp 0x10006d2b
cmp word [ebp - 0x10c], 0
je 0x10006f89
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x10006de0
sub eax, ebx
sar eax, 1
lea edx, [eax + 1]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x174], eax
mov eax, ebx
cmp esi, 1
ja 0x10006e1a
jmp 0x10006e70
sub esi, 1
add ecx, 2
add eax, 2
mov word [ecx - 2], bx
cmp esi, 1
je 0x10006e22
movzx ebx, word [eax]
test bx, bx
jne 0x10006e08
xor ebx, ebx
mov word [ecx], bx
jmp 0x10006d9c
mov eax, edx
add eax, 1
cmp eax, dword [ebp + 0xc]
jl 0x10006cbb
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x190]
mov dword [eax], 0
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x178]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, 0x80044074
jmp 0x10006f3f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10006d9c
jmp 0x10006e22
mov dword [ebp - 0x17c], 1
mov eax, 0x1f4
jmp 0x10006bc7
mov eax, dword [ebp - 0x178]
mov esi, dword [ebp - 0x190]
mov ebx, dword [ebp - 0x198]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x180]
lea esi, [ebp - 0x15c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp + 0xc], 0x23
mov dword [esp + 8], esi
mov dword [esp + 4], 0x185
mov eax, dword [0x10035014]
mov dword [esp], eax
mov eax, dword [ebp - 0x194]
call eax
mov ecx, dword [0x10024974]
lea edx, [eax + eax + 2]
add eax, 6
sub esp, 0x10
mov dword [ebp + edx - 0x15c], ecx
mov ecx, dword [0x10024978]
mov dword [ebp - 0x174], eax
mov dword [ebp + edx - 0x158], ecx
movzx ecx, word [0x1002497c]
mov word [ebp + edx - 0x154], cx
cmp eax, dword [ebp + 0xc]
jge 0x10006fd7
add edx, 0xa
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._memcpy
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__p__ld__d__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AVIBuildFilterW
mov dword [esp + 4], 0x10022028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10006939
mov edx, 1
jmp 0x10006df0
mov edi, dword [ebp - 0x18c]
test byte [0x10022028], 2
je 0x10006bf3
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0xc], str.:_More_than__d_filters_found__Adjust_MAX_FILTERS_in_dlls_avifil32_api.c_n
mov dword [esp + 8], str.AVIBuildFilterW
mov dword [esp + 4], 0x10022028
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10006bf3
mov eax, dword [ebp + 8]
xor edx, edx
mov word [eax], dx
jmp 0x10006e66
mov ebx, 0x8004406b
jmp 0x10006f3f
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ebx, 0x800440c7
jmp 0x10006f3f
mov ebx, 0x8004406a
jmp 0x10006f3f
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10006ff7
mov ebx, 0x80044067
jmp 0x10006f3f