Function at 0x40b6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
test byte [0x4150b0], 8
jne 0x40b848
mov edi, dword [0x416ebc]
cmp edi, 0x416ebc
jne 0x40b70e
jmp 0x40b7c0
mov edi, dword [edi]
cmp edi, 0x416ebc
je 0x40b7c0
cmp dword [edi + 8], esi
jne 0x40b700
mov eax, dword [edi + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x40b700
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40b700
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x40b700
test byte [0x4150b0], 8
jne 0x40b768
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.ucrtbase.dll__wcsdup]
mov eax, dword [edi + 0x14]
call sym._wine_dbgstr_wn.constprop.0_4
mov esi, eax
mov eax, dword [ebp - 0x18]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [ebp - 0x18], eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
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], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40b751
mov dword [ebp - 0x10], 0
test byte [0x4150b0], 8
jne 0x40b998
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0x2000000
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x40b930
movzx edx, byte [0x4150b0]
cmp eax, 2
je 0x40b8a0
and edx, 2
jne 0x40b8bc
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x4150b0], 8
jne 0x40b8f0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
call sym._wine_dbgstr_wn.constprop.0_4
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str.path_s__name_s__def_s_n
mov dword [esp + 8], str.get_reg_key
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40b6e8
and edx, 8
jne 0x40ba68
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
jmp 0x40b82d
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], 0x4150b0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_8
jmp 0x40b81c
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
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], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
mov esi, 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 esi
sub esp, 0x18
cmp eax, 2
je 0x40ba91
test eax, eax
je 0x40b9ec
test byte [0x4150b0], 2
je 0x40b81c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_query_values_length__res_ld__n
jmp 0x40b8c8
mov eax, dword [ebp - 0x1c]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
call sym._wine_dbgstr_wn.constprop.0_4
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str.subkey_s__name_s__def_s_n
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40b7d4
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov ebx, eax
mov eax, dword [ebp - 0x18]
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 esi
sub esp, 0x18
test byte [0x4150b0], 8
je 0x40b81e
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
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], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40b81e
mov dword [esp + 0xc], str.Section_key_not_present___using_default_n
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40b8a9
test byte [0x4150b0], 8
jne 0x40baad
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
jmp 0x40b81e
mov dword [esp + 0xc], str.Value_not_present___using_default_n
mov dword [esp + 8], str.get_config_key
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40ba9a