Function at 0x404610
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], eax
mov eax, 0x20019
mov dword [ebp - 0x40], edx
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0x80000001
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x404660
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x24]
xor ecx, ecx
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x28]
xor esi, esi
mov dword [esp + 0x1c], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xc], eax
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
mov dword [esp], eax
call sym._RegQueryInfoKeyW_48
sub esp, 0x30
test eax, eax
mov esi, eax
jne 0x4047e8
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4046e0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
add eax, eax
mov dword [esp], eax
call sym._heap_xalloc
mov ebx, eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40471a
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov edi, 0x800
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._AppendMenuW_16
sub esp, 0x10
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4047b0
lea edi, [ebp - 0x1c]
xor esi, esi
jmp 0x404736
inc esi
cmp dword [ebp - 0x28], esi
jbe 0x4047b0
mov dword [esp + 0x14], edi
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._RegEnumValueW_32
sub esp, 0x20
test eax, eax
jne 0x404730
cmp dword [ebp - 0x1c], 1
jne 0x404730
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x404810
mov dword [esp + 0xc], ebx
lea eax, [esi + 0x80e8]
inc esi
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._AppendMenuW_16
sub esp, 0x10
cmp dword [ebp - 0x28], esi
ja 0x404736
lea esi, [esi]
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x4046d1
test byte [0x411030], 2
jne 0x404840
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x4046d1
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x404730
mov dword [esp + 0xc], ebx
xor ecx, ecx
mov edx, 0x180
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x404730
mov dword [esp + 0x10], eax
mov eax, str.RegQueryInfoKey_failed:__ld_n
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, str.add_favourite_key_items
mov dword [esp + 8], eax
mov eax, 0x411030
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4046c3