Function at 0x402c20
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x468
mov ebx, dword [ecx + 4]
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp ebx, 0x200
mov dword [ebp - 0x430], eax
je 0x403475
jbe 0x402cc0
cmp ebx, 0x204
je 0x402f70
jbe 0x402e85
cmp ebx, 0x207
je 0x402df1
cmp ebx, 0x208
je 0x402f42
cmp ebx, 0x205
je 0x402e40
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
mov ebx, eax
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp ebx, 3
je 0x403450
jbe 0x402ee0
cmp ebx, 0x111
je 0x402e20
cmp ebx, 0x113
je 0x4034a4
cmp ebx, 0xf
jne 0x402c8c
test byte [section..data], 8
jne 0x40367d
lea eax, [ebp - 0x218]
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x418]
mov dword [ebp - 0x434], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call dword [sym.imp.user32.dll_BeginPaint]
sub esp, 8
mov dword [ebp - 0x42c], eax
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [sym.imp.user32.dll_IntersectRect]
sub esp, 4
mov dword [esp + 8], 0x40806c
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x438], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x403a05
mov dword [esp + 8], 0x40805c
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [ebp - 0x438]
sub esp, 0xc
test eax, eax
jne 0x4039d4
mov dword [esp + 8], 0x40804c
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [ebp - 0x438]
sub esp, 0xc
test eax, eax
jne 0x4038eb
mov dword [esp + 8], 0x40803c
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [ebp - 0x438]
sub esp, 0xc
test eax, eax
jne 0x40359c
mov dword [esp], edi
xor ebx, ebx
call dword [sym.imp.gdi32.dll_DeleteDC]
mov eax, dword [ebp - 0x434]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndPaint]
sub esp, 8
jmp 0x402cac
test byte [section..data], 8
jne 0x4036a6
mov eax, dword [ebp - 0x430]
mov ecx, esi
movsx edx, si
sar ecx, 0x10
mov dword [esp], 0x207
xor ebx, ebx
call sym._TestBoard.constprop.3
jmp 0x402cac
movzx eax, di
sub eax, 0x3e9
cmp eax, 8
ja case.default.0x402e31
jmp dword [eax*4 + 0x4061e0]
test byte [section..data], 8
jne 0x4038c2
and edi, 1
cmp edi, 1
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x208
mov dword [esp], eax
mov eax, dword [ebp - 0x430]
mov ecx, esi
sar ecx, 0x10
movsx edx, si
xor ebx, ebx
call sym._TestBoard.constprop.3
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp ebx, 0x201
je 0x4034f0
cmp ebx, 0x202
jne 0x402c8c
test byte [section..data], 8
jne 0x403899
and edi, 6
mov ecx, esi
movsx edx, si
cmp edi, 1
sbb eax, eax
sar ecx, 0x10
xor ebx, ebx
and eax, 0xfffffffa
add eax, 0x208
mov dword [esp], eax
mov eax, dword [ebp - 0x430]
call sym._TestBoard.constprop.3
call dword [sym.imp.user32.dll_ReleaseCapture]
jmp 0x402cac
cmp ebx, 1
je 0x402fb0
cmp ebx, 2
jne 0x402c8c
mov dword [esp], 0x408020
call dbg.SaveBoard
mov eax, dword [0x408034]
mov ebx, dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [esp], eax
call ebx
mov eax, dword [0x408038]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [0x408030]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
xor ebx, ebx
mov dword [esp], 0
call dword [sym.imp.user32.dll_PostQuitMessage]
sub esp, 4
jmp 0x402cac
test byte [section..data], 8
jne 0x40362b
mov eax, dword [ebp - 0x430]
mov ecx, esi
movsx edx, si
sar ecx, 0x10
mov dword [esp], 0x208
xor ebx, ebx
call sym._TestBoard.constprop.3
jmp 0x402cac
test byte [section..data], 8
jne 0x403982
and edi, 1
mov eax, 0x204
je 0x402e5d
mov dword [0x408178], 0
mov dword [0x40817c], 0
mov eax, 0x207
jmp 0x402e5d
mov eax, dword [esi + 4]
mov esi, dword [ebp - 0x430]
mov ebx, dword [sym.imp.user32.dll_LoadBitmapW]
mov dword [esp + 4], 4
mov dword [0x408028], eax
mov dword [0x40802c], esi
mov dword [esp], eax
call ebx
mov dword [0x408030], eax
mov eax, dword [0x408028]
sub esp, 8
mov dword [esp + 4], 2
mov dword [esp], eax
call ebx
mov dword [0x408034], eax
mov eax, dword [0x408028]
sub esp, 8
mov dword [esp + 4], 3
mov dword [esp], eax
call ebx
mov dword [0x408038], eax
lea eax, [ebp - 0x41c]
sub esp, 8
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea ebx, [ebp - 0x424]
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.SoftwareMicrosoftWinMine
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x420]
sub esp, 0x14
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x408084
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Xpos
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x42c], eax
call eax
sub esp, 0x18
test eax, eax
je 0x4030a2
mov dword [0x408084], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x408088
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], str.Ypos
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
je 0x4030f2
mov dword [0x408088], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x40809c
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], str.Height
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
je 0x403142
mov dword [0x40809c], 9
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x4080a0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], str.Width
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
je 0x403192
mov dword [0x4080a0], 9
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x4080a4
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], 0x4060d6
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
je 0x4031e2
mov dword [0x4080a4], 0xa
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x408174
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], str.Difficulty
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
je 0x403232
mov dword [0x408174], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x408020
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], str.Mark
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
jne 0x403570
lea esi, [ebp - 0x418]
lea eax, [ebp - 0x218]
xor edx, edx
mov dword [ebp - 0x430], 0x4080a8
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], eax
mov esi, edx
mov edi, dword [ebp - 0x438]
add esi, 1
mov dword [esp + 4], str.Name_u
mov dword [esp + 8], esi
mov dword [esp], edi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x434]
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x424], 0x40
mov dword [esp + 0x14], ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
jne 0x403540
mov ecx, dword [ebp - 0x430]
mov edx, dword [ebp - 0x434]
mov edi, ecx
mov eax, ecx
add edi, 0x3e
jmp 0x40332e
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp edi, eax
je 0x403336
movzx ecx, word [edx]
test cx, cx
jne 0x403320
xor edi, edi
mov word [eax], di
add dword [ebp - 0x430], 0x40
cmp esi, 3
jne 0x4032a2
mov esi, dword [ebp - 0x438]
mov edi, 0x408168
xor edx, edx
add edx, 1
mov dword [esp + 4], str.Time_u
mov dword [esp + 8], edx
mov dword [ebp - 0x430], edx
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x42c]
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x430]
je 0x4033c0
mov dword [edi], 0x3e7
add edi, 4
cmp edx, 3
jne 0x403358
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40802c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov esi, eax
mov eax, dword [0x408174]
sub esp, 4
mov dword [esp + 8], 8
mov dword [esp], esi
mov ebx, dword [sym.imp.user32.dll_CheckMenuItem]
add eax, 0x3ed
mov dword [esp + 4], eax
call ebx
mov ecx, dword [0x408020]
sub esp, 0xc
test ecx, ecx
jne 0x40357f
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [esp], esi
call ebx
sub esp, 0xc
mov dword [esp], 0x408020
xor ebx, ebx
call dbg.CheckLevel
call sym._CreateBoard.constprop.16
jmp 0x402cac
test byte [section..data], 8
jne 0x403654
movsx eax, si
sar esi, 0x10
xor ebx, ebx
mov dword [0x408084], eax
mov dword [0x408088], esi
jmp 0x402cac
test edi, 0x10
jne 0x4036cf
mov eax, edi
and eax, 3
cmp eax, 3
je 0x4036cf
xor ebx, ebx
and edi, 1
mov eax, 0x201
jne 0x402e5d
jmp 0x402cac
xor ebx, ebx
cmp dword [0x408188], 1
jne 0x402cac
mov eax, dword [ebp - 0x430]
add dword [0x40808c], 1
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40805c
mov dword [esp], eax
call dword [sym.imp.user32.dll_RedrawWindow]
sub esp, 0x10
jmp 0x402cac
test byte [section..data], 8
jne 0x4039ab
and edi, 6
movsx edx, si
mov ecx, esi
cmp edi, 1
mov esi, dword [ebp - 0x430]
sbb eax, eax
sar ecx, 0x10
xor ebx, ebx
and eax, 0xfffffffa
add eax, 0x207
mov dword [esp], eax
mov eax, esi
call sym._TestBoard.constprop.3
mov dword [esp], esi
call dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x402cac
mov eax, dword [ebp - 0x430]
mov dword [esp + 0xc], 0x20
mov dword [esp + 4], 0x44e
mov dword [esp + 8], eax
mov eax, dword [0x408028]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
jmp 0x40333b
mov dword [0x408020], 1
jmp 0x40327c
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f1
mov dword [esp], esi
call ebx
sub esp, 0xc
jmp 0x403437
mov eax, dword [0x408030]
mov dword [esp], edi
mov esi, 1
mov dword [esp + 4], eax
mov eax, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [ebp - 0x43c], eax
call eax
mov edx, dword [0x40809c]
sub esp, 8
mov dword [ebp - 0x438], eax
test edx, edx
je 0x403610
lea esi, [esi]
mov eax, dword [0x4080a0]
mov ebx, 1
test eax, eax
je 0x403605
nop
mov eax, dword [ebp - 0x42c]
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], esi
mov edx, edi
add ebx, 1
call sym._DrawMine.constprop.14
cmp ebx, dword [0x4080a0]
jbe 0x4035e0
add esi, 1
cmp esi, dword [0x40809c]
jbe 0x4035d0
mov eax, dword [ebp - 0x438]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebp - 0x43c]
sub esp, 8
jmp 0x402dc2
mov dword [esp + 0xc], str.WM_MBUTTONUP_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x402f4f
mov dword [esp + 0xc], str.WM_MOVE_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x40345d
mov dword [esp + 0xc], str.WM_PAINT_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x402cf9
mov dword [esp + 0xc], str.WM_MBUTTONDOWN_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x402dfe
mov eax, 0x207
jmp 0x402e5d
xor eax, eax
call sym._SetDifficulty.constprop.17
call sym._CreateBoard.constprop.16
xor ebx, ebx
jmp 0x402cac
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov edx, dword [0x408020]
xor ecx, ecx
sub esp, 4
test edx, edx
sete cl
mov dword [0x408020], ecx
jne 0x403a72
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f1
mov dword [esp], eax
xor ebx, ebx
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp 0x402cac
mov eax, dword [ebp - 0x430]
mov dword [esp + 0x10], 0x408020
xor ebx, ebx
mov dword [esp + 0xc], dbg.TimesDlgProc@16
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [0x408028]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
jmp 0x402cac
mov eax, dword [ebp - 0x430]
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x402cac
mov eax, 3
xor ebx, ebx
call sym._SetDifficulty.constprop.17
call sym._CreateBoard.constprop.16
jmp 0x402cac
mov eax, 2
xor ebx, ebx
call sym._SetDifficulty.constprop.17
call sym._CreateBoard.constprop.16
jmp 0x402cac
mov eax, 1
xor ebx, ebx
call sym._SetDifficulty.constprop.17
call sym._CreateBoard.constprop.16
jmp 0x402cac
mov eax, dword [0x408028]
lea ebx, [ebp - 0x418]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x44d
lea esi, [ebp - 0x218]
mov dword [esp + 8], ebx
mov dword [esp], eax
call edi
mov eax, dword [0x408028]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x44f
mov dword [esp], eax
call edi
mov eax, dword [0x408028]
sub esp, 0x10
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadImageW]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
xor ebx, ebx
mov dword [esp], eax
call dword [0x409294]
sub esp, 0x10
jmp 0x402cac
mov dword [esp + 0xc], str.WM_LBUTTONUP_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x402eaa
mov dword [esp + 0xc], str.WM_RBUTTONUP_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x402e4d
mov edx, dword [sym.imp.gdi32.dll_SelectObject]
mov eax, dword [0x408034]
mov dword [esp], edi
mov dword [ebp - 0x440], edx
mov dword [esp + 4], eax
call edx
mov dword [ebp - 0x43c], eax
mov eax, dword [0x408184]
sub esp, 8
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x18
lea eax, [eax + eax*2]
mov dword [esp + 0xc], 0x18
shl eax, 3
mov dword [esp + 0x1c], eax
mov eax, dword [0x408050]
mov dword [esp + 8], eax
mov eax, dword [0x40804c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov ecx, dword [ebp - 0x43c]
sub esp, 0x24
mov edx, dword [ebp - 0x440]
mov dword [esp], edi
mov dword [esp + 4], ecx
call edx
sub esp, 8
jmp 0x402da2
mov dword [esp + 0xc], str.WM_RBUTTONDOWN_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x402f7d
mov dword [esp + 0xc], str.WM_LBUTTONDOWN_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x4034fd
mov eax, dword [0x408060]
mov ecx, 0x408038
mov edx, edi
mov dword [esp + 8], eax
mov eax, dword [0x40805c]
mov dword [esp + 4], eax
mov eax, dword [0x40808c]
mov dword [esp], eax
mov eax, dword [ebp - 0x42c]
call sym._DrawLeds.isra.1
jmp 0x402d82
mov eax, dword [0x408070]
mov ecx, 0x408038
mov edx, edi
mov dword [esp + 8], eax
mov eax, dword [0x40806c]
mov dword [esp + 4], eax
mov eax, dword [0x4080a4]
sub eax, dword [0x408090]
mov dword [esp], eax
mov eax, dword [ebp - 0x42c]
call sym._DrawLeds.isra.1
jmp 0x402d62
test byte [section..data], 8
je 0x402c8c
mov dword [esp + 0xc], str.Unknown_WM_COMMAND_command_message_received_n
mov dword [esp + 8], str.MainProc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.22
jmp 0x402c8c
mov dword [esp + 8], 0
jmp 0x40371f