Function at 0x40c550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x3c]
lea esi, [ebp - 0x40]
push ebx
lea ebx, [ebp - 0x32]
sub esp, 0x6c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
xor edx, edx
lea esi, [esi]
mov dword [esp + 8], edx
mov dword [ebp - 0x4c], edx
mov dword [esp + 4], str.ColorTable_02d
mov dword [esp], ebx
call sym._wsprintfW
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
mov edx, dword [ebp - 0x4c]
sub esp, 0x18
test eax, eax
jne 0x40c5c7
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, 0x10
jne 0x40c570
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorSize
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c610
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x48], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorVisible
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c651
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x4c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.EditionMode
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c695
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x80], eax
mov dword [ebp - 0x3c], 0x40
mov dword [esp + 0x14], edi
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], esi
add eax, 0x8c
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.FaceName
mov ebx, dword [ebp - 0x50]
mov dword [esp], ebx
call sym._RegQueryValueExW_24
lea edx, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
sub esp, 0x18
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontPitchFamily
mov dword [esp], ebx
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c70f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x84], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontSize
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c75e
mov eax, dword [ebp - 0x38]
movzx ebx, ax
shr eax, 0x10
jne 0x40ca35
test ebx, ebx
jne 0x40ca0d
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontWeight
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c7a2
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x88], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c7e3
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x58], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c824
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x5c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.wszInsertMode
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c865
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x60], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c8a6
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x64], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c8e7
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x54], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c928
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x68], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenBufferSize
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c976
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov edx, eax
and eax, 0xffff
shr edx, 0x10
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenColors
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40c9b7
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x50], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowSize
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40ca05
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov edx, eax
and eax, 0xffff
shr edx, 0x10
mov dword [ecx + 0x74], eax
mov dword [ecx + 0x78], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._GetDpiForSystem_0
mov dword [esp + 8], 0x60
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_MulDiv]
mov ecx, dword [ebp - 0x54]
sub esp, 0xc
mov dword [ecx + 0x40], eax
jmp 0x40c75e
mov dword [ebp - 0x4c], eax
call sym._GetDpiForSystem_0
mov dword [esp + 8], 0x60
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_MulDiv]
mov ecx, dword [ebp - 0x54]
sub esp, 0xc
mov dword [ecx + 0x44], eax
test ebx, ebx
je 0x40c75e
jmp 0x40ca0d