Function at 0x412d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov ebx, dword [ebp + 8]
test byte [0x418888], 8
jne 0x412f00
mov esi, dword [0x418880]
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiW]
cmp esi, 0x418880
jne 0x412d96
jmp 0x412e40
mov esi, dword [esi]
cmp esi, 0x418880
je 0x412e40
cmp dword [esi + 8], ebx
jne 0x412d88
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x412d88
mov eax, dword [esi + 0x10]
test eax, eax
je 0x412d88
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x412d88
mov eax, dword [esi + 0x14]
test byte [0x418888], 8
jne 0x412df0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edi, eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._wine_dbgstr_wn.constprop.0_3
mov edi, eax
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0_3
mov ebx, eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.found__s:_s_in_settings_list__returning__s_n
mov dword [esp + 8], str.get_reg_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov eax, dword [esi + 0x14]
jmp 0x412dd7
mov dword [ebp - 0x10], 0
test byte [0x418888], 8
jne 0x413010
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0x2000000
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x412fa8
movzx edx, byte [0x418888]
cmp eax, 2
je 0x412f58
and edx, 2
jne 0x412f74
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x418888], 8
je 0x412de2
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0xc], str.returning__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_reg_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.constprop.0_3
mov esi, eax
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0_3
mov edi, eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path_s__name_s__def_s_n
mov dword [esp + 8], str.get_reg_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x412d69
and edx, 8
jne 0x4130e1
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edi, eax
jmp 0x412eb0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RegOpenKey_failed_on_wine_config_key__res_ld__n
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x418888
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_8
jmp 0x412e9f
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
cmp eax, 2
je 0x41310a
test eax, eax
je 0x413065
test byte [0x418888], 2
je 0x412e9f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_query_values_length__res_ld__n
jmp 0x412f80
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0_3
mov edi, eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_3
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.subkey_s__name_s__def_s_n
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x412e54
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
test byte [0x418888], 8
je 0x412ea1
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0xc], str.buffer_s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x412ea1
mov dword [esp + 0xc], str.Section_key_not_present___using_default_n
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x412f61
test byte [0x418888], 8
jne 0x413126
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edi, eax
jmp 0x412ea1
mov dword [esp + 0xc], str.Value_not_present___using_default_n
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x413113