Function at 0x409b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x820]
push ebx
sub esp, 0x84c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x2000000
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
sub esp, 0x14
test eax, eax
jne 0x409f28
xor ebx, ebx
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x830], 1
mov dword [ebp - 0x834], ebx
mov ebx, dword [ebp + 0xc]
lea esi, [esi]
lea eax, [ebp - 0x81c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x81c], 0x400
dec eax
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x409d70
test byte [0x4150a0], 8
jne 0x409d00
mov edi, dword [0x416ebc]
cmp edi, 0x416ebc
jne 0x409c1a
jmp 0x409c68
mov edi, dword [edi]
cmp edi, 0x416ebc
je 0x409c68
mov dword [esp + 4], ebx
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x409c10
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x409c10
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x409c10
test byte [0x4150a0], 8
jne 0x409d40
inc dword [ebp - 0x830]
jmp 0x409b88
inc dword [ebp - 0x82c]
mov eax, dword [ebp - 0x82c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x834]
mov dword [esp + 4], edx
mov dword [ebp - 0x838], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x834], eax
lea edx, [eax + edx - 4]
lea eax, [ebp - 0x818]
mov dword [ebp - 0x838], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, dword [ebp - 0x838]
mov dword [edx], eax
test byte [0x4150a0], 8
je 0x409c5a
mov eax, dword [ebp - 0x82c]
mov dword [esp + 0xc], str.valueslen_is_now__ld_n
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x409c5a
lea eax, [ebp - 0x818]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0xc], str.name_s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x409bf8
mov dword [esp + 0xc], str.this_key_has_been_removed__so_skipping_n
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x409c5a
mov ebx, dword [ebp - 0x834]
movzx eax, byte [0x4150a0]
test al, 8
jne 0x409f47
mov esi, dword [0x416ebc]
cmp esi, 0x416ebc
je 0x409e36
lea esi, [esi]
nop
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x409dff
mov edx, dword [esi + 0x14]
test edx, edx
je 0x409dff
mov eax, dword [ebp - 0x82c]
test eax, eax
je 0x409e80
xor edi, edi
jmp 0x409de5
inc edi
cmp dword [ebp - 0x82c], edi
je 0x409e80
mov eax, dword [ebx + edi*4]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x409dd8
mov esi, dword [esi]
cmp esi, 0x416ebc
jne 0x409da0
test byte [0x4150a0], 8
je 0x409e36
mov dword [esp + 0xc], str.adding_null_terminator_n
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
test ebx, ebx
je 0x409e5e
mov eax, dword [ebp - 0x82c]
mov dword [esp], ebx
lea esi, [eax*4 + 4]
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [eax + esi - 4], 0
mov ebx, eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x4150a0], 8
jne 0x409ef0
inc dword [ebp - 0x82c]
mov eax, dword [ebp - 0x82c]
mov dword [esp], ebx
lea edx, [eax*4]
mov dword [esp + 4], edx
mov dword [ebp - 0x830], edx
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x830]
mov ebx, eax
lea edx, [eax + edx - 4]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x830], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, dword [ebp - 0x830]
mov dword [edx], eax
mov esi, dword [esi]
cmp esi, 0x416ebc
jne 0x409da0
jmp 0x409e09
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0xc], str._s_in_list_but_not_registry_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x409e89
movzx eax, byte [0x4150a0]
test al, 4
jne 0x409f82
mov dword [ebp - 0x82c], 0
xor ebx, ebx
test al, 8
je 0x409d85
mov dword [esp + 0xc], str.adding_settings_in_list_but_not_registry_n
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov esi, dword [0x416ebc]
cmp esi, 0x416ebc
jne 0x409da0
jmp 0x409e09
mov eax, dword [ebp + 0xc]
xor ebx, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov ecx, dword [ebp - 0x82c]
mov dword [esp + 0xc], str.failed_opening_registry_key__s__res0x_lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
movzx eax, byte [0x4150a0]
mov dword [ebp - 0x82c], 0
jmp 0x409d7d