Function at 0x409900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x2c]
sub esp, 0x6c
mov dword [ebp - 0x3c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x409950
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
mov edi, eax
test eax, eax
jne 0x409ae0
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x4099e0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 1]
lea eax, [ecx + ecx]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x40], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test ebx, ebx
mov ecx, dword [ebp - 0x40]
mov esi, eax
je 0x409a33
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800
mov dword [esp], ebx
call dword [0x417604]
mov eax, dword [ebp - 0x28]
sub esp, 0x10
test eax, eax
je 0x409ac0
mov ecx, dword [ebp - 0x24]
xor edi, edi
jmp 0x409a49
inc edi
cmp dword [ebp - 0x28], edi
jbe 0x409ac0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x409a40
cmp dword [ebp - 0x1c], 1
jne 0x409a40
test ebx, ebx
je 0x409b00
lea eax, [edi + 0x80e8]
mov dword [esp + 0xc], esi
inc edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [0x417604]
sub esp, 0x10
cmp dword [ebp - 0x28], edi
ja 0x409a46
nop
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x4099d5
test byte [0x410784], 2
jne 0x409b30
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x4099d5
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x409a40
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x180
mov dword [esp], eax
call dword [0x417714]
sub esp, 0x10
jmp 0x409a40
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0xc], str.RegQueryInfoKey_failed:__ld_n
mov dword [esp + 8], str.add_favourite_key_items
mov dword [esp + 4], 0x410784
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4099c6