Function at 0x409e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x814]
push ebx
sub esp, 0x838
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 - 0x818], eax
sub esp, 0x14
test eax, eax
jne 0x40a258
xor ebx, ebx
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x81c], 1
mov dword [ebp - 0x820], ebx
mov ebx, dword [ebp + 0xc]
lea esi, [esi]
lea eax, [ebp - 0x810]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x810], 0x400
dec eax
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x814]
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 0x40a0a0
test byte [0x4150b0], 8
jne 0x40a030
mov edi, dword [0x416ebc]
cmp edi, 0x416ebc
jne 0x409f4a
jmp 0x409f98
mov edi, dword [edi]
cmp edi, 0x416ebc
je 0x409f98
mov dword [esp + 4], ebx
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x409f40
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x409f40
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x409f40
test byte [0x4150b0], 8
jne 0x40a070
inc dword [ebp - 0x81c]
jmp 0x409eb8
inc dword [ebp - 0x818]
mov eax, dword [ebp - 0x818]
lea edx, [eax*4]
mov eax, dword [ebp - 0x820]
mov dword [esp + 4], edx
mov dword [ebp - 0x824], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0x820], eax
lea edx, [eax + edx - 4]
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x824], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, dword [ebp - 0x824]
mov dword [edx], eax
test byte [0x4150b0], 8
je 0x409f8a
mov eax, dword [ebp - 0x818]
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], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x409f8a
lea eax, [ebp - 0x80c]
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], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x409f28
mov dword [esp + 0xc], str.this_key_has_been_removed__so_skipping_n
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x409f8a
mov ebx, dword [ebp - 0x820]
movzx eax, byte [0x4150b0]
test al, 8
jne 0x40a277
mov esi, dword [0x416ebc]
cmp esi, 0x416ebc
je 0x40a166
lea esi, cs:[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 0x40a12f
mov edx, dword [esi + 0x14]
test edx, edx
je 0x40a12f
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x40a1b0
xor edi, edi
jmp 0x40a115
inc edi
cmp dword [ebp - 0x818], edi
je 0x40a1b0
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 0x40a108
mov esi, dword [esi]
cmp esi, 0x416ebc
jne 0x40a0d0
test byte [0x4150b0], 8
je 0x40a166
mov dword [esp + 0xc], str.adding_null_terminator_n
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
test ebx, ebx
je 0x40a18e
mov eax, dword [ebp - 0x818]
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 - 0x814]
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 [0x4150b0], 8
jne 0x40a220
inc dword [ebp - 0x818]
mov eax, dword [ebp - 0x818]
mov dword [esp], ebx
lea edx, [eax*4]
mov dword [esp + 4], edx
mov dword [ebp - 0x81c], edx
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x81c]
mov ebx, eax
lea edx, [eax + edx - 4]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x81c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, dword [ebp - 0x81c]
mov dword [edx], eax
mov esi, dword [esi]
cmp esi, 0x416ebc
jne 0x40a0d0
jmp 0x40a139
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], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40a1b9
movzx eax, byte [0x4150b0]
test al, 4
jne 0x40a2b2
mov dword [ebp - 0x818], 0
xor ebx, ebx
test al, 8
je 0x40a0b5
mov dword [esp + 0xc], str.adding_settings_in_list_but_not_registry_n
mov dword [esp + 8], str.enumerate_values
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov esi, dword [0x416ebc]
cmp esi, 0x416ebc
jne 0x40a0d0
jmp 0x40a139
mov eax, dword [ebp + 0xc]
xor ebx, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov ecx, dword [ebp - 0x818]
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], 0x4150b0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_8
movzx eax, byte [0x4150b0]
mov dword [ebp - 0x818], 0
jmp 0x40a0ad