Function at 0x409796
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x4a9c04]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x1c
mov eax, 0x48051d
call fcn.0044fa1b
mov eax, dword [ebp + 0x218]
xor esi, esi
inc esi
push esi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x15], 1
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [edi + 0x34c]
xor ebx, ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0x3fe
mov dword [edi + 0x10], 0x45c
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], 0x7bc0
mov byte [edi + 0x1c], bl
mov dword [edi + 0x120], ebx
mov dword [edi + 0x124], esi
mov dword [edi + 0x12c], ebx
mov byte [edi + 0x130], bl
mov dword [edi + 0x234], ebx
mov dword [edi + 0x128], ebx
mov dword [edi + 0x340], esi
mov dword [edi + 0x344], ebx
mov dword [edi + 0x348], ebx
mov dword [edi + 0x33c], ebx
call fcn.004191bf
mov ecx, edi
mov dword [edi + 0x34c], ebx
mov dword [edi + 0x350], ebx
mov dword [esp], str._Temp_BGInfo.bmp
call fcn.004090d1
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x409863
cmp byte [eax], bl
je 0x409b59
mov ecx, edi
call fcn.00409007
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], ebx
je 0x40988a
push esi
push dword [ebp - 0x1c]
push eax
call fcn.00409261
add esp, 0xc
mov byte [ebp - 0x15], al
cmp al, bl
je 0x409b59
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 8]
push eax
push ebx
push ebx
push str.Background
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
push ebx
push ebx
push str.Position
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x10]
push eax
push ebx
push ebx
push str.Monitor
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x14]
push eax
push ebx
push ebx
push str.TaskbarAdjust
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x18]
push eax
push ebx
push ebx
push str.TextWidth2
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x1c]
push eax
push ebx
push ebx
push str.Wallpaper
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x104
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x120]
push eax
push ebx
push ebx
push str.WallpaperPos
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x124]
push eax
push ebx
push ebx
push str.WallpaperUser
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x238]
push eax
push ebx
push ebx
push str.OutputFile
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x104
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x130]
push eax
push ebx
push ebx
push str.Database
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x104
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x234]
push eax
push ebx
push ebx
push str.DatabaseMRU
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x128]
push eax
push ebx
push ebx
push str.MaxColorBits
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x33c]
push eax
push ebx
push ebx
push str.ErrorNotify
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x344]
push eax
push ebx
push ebx
push str.LogonScreen
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x340]
push eax
push ebx
push ebx
push str.UserScreen
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x348]
push eax
push ebx
push ebx
push str.TerminalScreen
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 4
call esi
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x12c]
push eax
push ebx
push ebx
push str.OpaqueTextBox
push dword [ebp - 0x14]
call esi
lea eax, [edi + 0x350]
push eax
push ebx
push ebx
push ebx
push 0x488c0c
push dword [ebp - 0x14]
call esi
push dword [edi + 0x34c]
call fcn.004191bf
push dword [edi + 0x350]
call fcn.00419190
pop ecx
pop ecx
lea ecx, [edi + 0x350]
push ecx
push eax
push ebx
push ebx
push 0x488c0c
push dword [ebp - 0x14]
mov dword [edi + 0x34c], eax
call esi
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push str.UserFields
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x104]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x1c], ebx
push ebx
jmp 0x409b2f
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp]
push eax
lea ecx, [edi + 0x354]
call fcn.00408f95
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x104]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x28], 0x105
call esi
cmp eax, ebx
je 0x409afe
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
mov ecx, edi
call fcn.00409070
mov esi, dword [edi + 4]
cmp esi, ebx
je 0x409b6e
mov ecx, esi
call fcn.00409097
push esi
call fcn.004191bf
pop ecx
push 0x2298
call fcn.00419190
pop ecx
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x409b8d
push edi
call fcn.00409728
jmp 0x409b8f
xor eax, eax
mov dword [edi + 4], eax
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0044f35b
add ebp, 0x210
leave
ret 4