Function at 0x4029f0
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 esi, dword [ecx + 4]
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
cmp esi, 0x208
ja case.0x402a35.515
cmp esi, 0x1ff
jbe 0x402a40
lea eax, [esi - 0x200]
cmp eax, 8
ja case.0x402a35.515
jmp dword [eax*4 + 0x406184]
cmp esi, 0xf
je 0x4031a0
ja 0x403118
cmp esi, 2
je 0x402ef0
cmp esi, 3
je 0x4032b0
cmp esi, 1
jne case.0x402a35.515
mov eax, dword [edi + 4]
mov dword [0x40702c], ebx
lea esi, [ebp - 0x420]
lea ebx, [ebp - 0x424]
mov dword [0x407028], eax
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._LoadBitmapW_8
sub esp, 8
mov dword [0x407030], eax
mov dword [esp + 4], 2
mov eax, dword [0x407028]
mov dword [esp], eax
call sym._LoadBitmapW_8
sub esp, 8
mov dword [0x407034], eax
mov dword [esp + 4], 3
mov eax, dword [0x407028]
mov dword [esp], eax
call sym._LoadBitmapW_8
mov dword [0x407038], eax
sub esp, 8
lea eax, [ebp - 0x41c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWinMine
mov dword [esp], 0x80000001
call sym._RegOpenKeyExW_20
mov dword [ebp - 0x424], 4
sub esp, 0x14
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x407084
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Xpos
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402b50
mov dword [0x407084], 0
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x407088
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Ypos
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402b99
mov dword [0x407088], 0
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x40709c
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Height
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402be2
mov dword [0x40709c], 9
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x4070a0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Width
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402c2b
mov dword [0x4070a0], 9
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x4070a4
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40607a
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402c74
mov dword [0x4070a4], 0xa
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x407174
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Difficulty
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402cbd
mov dword [0x407174], 0
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x407020
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Mark
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x403310
lea eax, [ebp - 0x418]
lea edi, [ebp - 0x1da]
mov dword [ebp - 0x434], 0x4070a8
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x438], eax
add dword [ebp - 0x430], 1
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], str.Name_u
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call sym._wsprintfW
mov dword [ebp - 0x424], 0x40
mov dword [esp + 0x14], ebx
mov edx, dword [ebp - 0x438]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x42c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
mov edx, dword [ebp - 0x434]
sub esp, 0x18
test eax, eax
jne 0x403170
mov eax, dword [ebp - 0x438]
jmp 0x402dbe
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp eax, edi
je 0x402dc6
movzx ecx, word [eax]
test cx, cx
jne 0x402db0
xor eax, eax
mov word [edx], ax
add dword [ebp - 0x434], 0x40
cmp dword [ebp - 0x430], 3
jne 0x402d32
mov edi, 0x407168
xor edx, edx
add edx, 1
mov dword [esp + 8], edx
mov dword [ebp - 0x430], edx
mov dword [esp + 4], str.Time_u
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call sym._wsprintfW
mov dword [ebp - 0x424], 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x42c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
mov edx, dword [ebp - 0x430]
sub esp, 0x18
test eax, eax
je 0x402e52
mov dword [edi], 0x3e7
add edi, 4
cmp edx, 3
jne 0x402de6
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [0x40702c]
sub esp, 4
mov dword [esp], eax
call sym._GetMenu_4
sub esp, 4
mov ebx, eax
mov dword [esp + 8], 8
mov eax, dword [0x407174]
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov eax, dword [0x407020]
sub esp, 0xc
test eax, eax
jne 0x4032f0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [esp], ebx
call sym._CheckMenuItem_12
sub esp, 0xc
mov dword [esp], 0x407020
call dbg.CheckLevel
call sym._CreateBoard.constprop.0
lea esi, [esi]
nop
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0x407020
call dbg.SaveBoard
mov eax, dword [0x407034]
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [0x407038]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [0x407030]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x402ee0
test byte [section..data], 8
je case.0x402a35.515
mov dword [ebp - 0x42c], edx
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.0
mov edx, dword [ebp - 0x42c]
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x402ee2
test byte [section..data], 8
jne 0x4033d0
mov dword [esp], 0x208
mov ecx, edi
movsx edx, di
mov eax, ebx
sar ecx, 0x10
call sym._TestBoard.constprop.0
jmp 0x402ee0
test byte [section..data], 8
jne 0x4033a0
mov dword [esp], 0x207
mov ecx, edi
movsx edx, di
mov eax, ebx
sar ecx, 0x10
call sym._TestBoard.constprop.0
jmp 0x402ee0
test byte [section..data], 8
jne 0x403368
and edx, 6
mov ecx, edi
cmp edx, 1
movsx edx, di
sbb eax, eax
sar ecx, 0x10
and eax, 0xfffffffa
add eax, 0x207
mov dword [esp], eax
mov eax, ebx
call sym._TestBoard.constprop.0
mov dword [esp], ebx
call sym._SetCapture_4
sub esp, 4
jmp 0x402ee0
test byte [section..data], 8
jne 0x403330
and edx, 1
mov eax, 0x204
je 0x4030bd
mov dword [0x407178], 0
mov eax, 0x207
mov dword [0x40717c], 0
jmp 0x4030bd
test dl, 0x10
jne 0x403320
mov eax, edx
not eax
test al, 3
je 0x403320
and edx, 1
mov eax, 0x201
jne 0x4030bd
jmp 0x402ee0
test byte [section..data], 8
jne 0x403438
and edx, 1
cmp edx, 1
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x208
mov dword [esp], eax
mov ecx, edi
movsx edx, di
mov eax, ebx
sar ecx, 0x10
call sym._TestBoard.constprop.0
jmp 0x402ee0
test byte [section..data], 8
jne 0x403400
and edx, 6
mov ecx, edi
cmp edx, 1
movsx edx, di
sbb eax, eax
sar ecx, 0x10
and eax, 0xfffffffa
add eax, 0x208
mov dword [esp], eax
mov eax, ebx
call sym._TestBoard.constprop.0
call sym._ReleaseCapture_0
jmp 0x402ee0
cmp esi, 0x111
je 0x4032d8
cmp esi, 0x113
jne case.0x402a35.515
cmp dword [0x407188], 1
jne 0x402ee0
add dword [0x40708c], 1
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40705c
mov dword [esp], ebx
call sym._RedrawWindow_16
sub esp, 0x10
jmp 0x402ee0
mov dword [esp + 0xc], 0x20
mov eax, dword [ebp - 0x434]
mov dword [esp + 4], 0x44e
mov dword [esp + 8], eax
mov eax, dword [0x407028]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
jmp 0x402dcb
test byte [section..data], 8
jne 0x403568
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x210]
mov dword [ebp - 0x438], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._BeginPaint_8
sub esp, 8
mov dword [ebp - 0x434], eax
mov dword [esp], eax
call sym._CreateCompatibleDC_4
mov dword [ebp - 0x430], eax
sub esp, 4
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x40706c
mov dword [esp + 4], esi
mov dword [ebp - 0x42c], eax
mov dword [esp], eax
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
jne 0x403530
mov dword [esp + 8], 0x40705c
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
jne 0x403500
mov dword [esp + 8], 0x40704c
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
jne 0x403470
mov dword [esp + 8], 0x40703c
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
jne 0x4035c8
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call sym._DeleteDC_4
mov eax, dword [ebp - 0x438]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._EndPaint_8
sub esp, 8
jmp 0x402ee0
test byte [section..data], 8
jne 0x403598
movsx eax, di
sar edi, 0x10
mov dword [0x407084], eax
mov dword [0x407088], edi
jmp 0x402ee0
movzx eax, dx
sub eax, 0x3e9
cmp eax, 8
ja case.default.0x4032e9
jmp dword [eax*4 + 0x4061a8]
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f1
mov dword [esp], ebx
call sym._CheckMenuItem_12
sub esp, 0xc
jmp 0x402ec6
mov dword [0x407020], 1
jmp 0x402d00
mov eax, 0x207
jmp 0x4030bd
mov dword [ebp - 0x42c], edx
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.0
mov edx, dword [ebp - 0x42c]
jmp 0x40304d
mov dword [ebp - 0x42c], edx
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.0
mov edx, dword [ebp - 0x42c]
jmp 0x40300d
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.0
jmp 0x402fdd
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.0
jmp 0x402fad
mov dword [ebp - 0x42c], edx
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.0
mov edx, dword [ebp - 0x42c]
jmp 0x4030e5
mov dword [ebp - 0x42c], edx
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.0
mov edx, dword [ebp - 0x42c]
jmp 0x4030ad
mov eax, dword [0x407034]
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x430]
mov dword [esp], edi
call sym._SelectObject_8
sub esp, 8
mov dword [ebp - 0x43c], eax
mov dword [esp + 0x20], 0xcc0020
mov eax, dword [0x407184]
mov dword [esp + 0x18], 0
lea eax, [eax + eax*2]
mov dword [esp + 0x14], edi
shl eax, 3
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0x18
mov eax, dword [0x407050]
mov dword [esp + 8], eax
mov eax, dword [0x40704c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x434]
mov dword [esp], eax
call sym._BitBlt_36
mov edx, dword [ebp - 0x43c]
sub esp, 0x24
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._SelectObject_8
sub esp, 8
jmp 0x40325a
mov eax, dword [0x407060]
mov dword [esp + 4], eax
mov eax, dword [0x40705c]
mov dword [esp], eax
mov ecx, dword [0x40708c]
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x434]
call sym._DrawLeds.constprop.0
jmp 0x403235
mov eax, dword [0x407070]
mov ecx, dword [0x4070a4]
sub ecx, dword [0x407090]
mov dword [esp + 4], eax
mov eax, dword [0x40706c]
mov dword [esp], eax
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x434]
call sym._DrawLeds.constprop.0
jmp 0x403210
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.0
jmp 0x4031ad
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.0
jmp 0x4032bd
mov eax, dword [0x407030]
mov esi, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call sym._SelectObject_8
mov edx, dword [0x40709c]
sub esp, 8
test edx, edx
je 0x403666
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x43c], ebx
lea esi, [esi]
mov eax, dword [0x4070a0]
test esi, esi
mov edi, 1
sete bl
test eax, eax
je 0x403653
lea esi, [esi]
nop
test edi, edi
je 0x403648
test bl, bl
jne 0x403648
cmp edx, esi
jb 0x403648
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], esi
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x434]
call sym._DrawMine.part.0.constprop.0
mov edx, dword [0x40709c]
add edi, 1
cmp dword [0x4070a0], edi
jae 0x403618
add esi, 1
cmp edx, esi
jae 0x403600
mov eax, dword [ebp - 0x42c]
mov ebx, dword [ebp - 0x43c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
jmp 0x40327f
mov eax, dword [0x40702c]
mov dword [esp], eax
call sym._GetMenu_4
sub esp, 4
mov ebx, eax
mov dword [esp + 8], 0
mov eax, dword [0x407174]
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov dword [0x407174], 2
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ef
mov dword [esp], ebx
call sym._CheckMenuItem_12
mov dword [0x4070a0], 0x1e
mov dword [0x40709c], 0x10
sub esp, 0xc
mov dword [0x4070a4], 0x63
call sym._CreateBoard.constprop.0
jmp 0x402ee0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x402ee0
mov dword [esp], ebx
call sym._GetMenu_4
mov ecx, dword [0x407020]
xor edx, edx
sub esp, 4
test ecx, ecx
sete dl
mov dword [0x407020], edx
jne 0x4039db
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f1
mov dword [esp], eax
call sym._CheckMenuItem_12
sub esp, 0xc
jmp 0x402ee0
lea esi, [ebp - 0x418]
mov dword [esp + 0xc], 0x100
lea edi, [ebp - 0x218]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x44d
mov eax, dword [0x407028]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 0x44f
mov eax, dword [0x407028]
mov dword [esp], eax
call sym._LoadStringW_16
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 eax, dword [0x407028]
mov dword [esp], eax
call sym._LoadImageW_24
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._ShellAboutW_16
sub esp, 0x10
jmp 0x402ee0
mov dword [esp + 0x10], 0x407020
mov dword [esp + 0xc], dbg.TimesDlgProc@16
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov eax, dword [0x407028]
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
jmp 0x402ee0
mov dword [esp + 0x10], 0x407020
mov dword [esp + 0xc], dbg.CustomDlgProc@16
mov eax, dword [0x40702c]
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov eax, dword [0x407028]
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
test eax, eax
jne case.0x4032e9.1001
mov eax, dword [0x40702c]
mov dword [esp], eax
call sym._GetMenu_4
sub esp, 4
mov ebx, eax
mov dword [esp + 8], 0
mov eax, dword [0x407174]
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov dword [0x407174], 3
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f0
mov dword [esp], ebx
call sym._CheckMenuItem_12
sub esp, 0xc
jmp case.0x4032e9.1001
mov eax, dword [0x40702c]
mov dword [esp], eax
call sym._GetMenu_4
sub esp, 4
mov ebx, eax
mov dword [esp + 8], 0
mov eax, dword [0x407174]
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov dword [0x407174], 1
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ee
call sym._CheckMenuItem_12
mov dword [0x4070a0], 0x10
mov dword [0x40709c], 0x10
sub esp, 0xc
mov dword [0x4070a4], 0x28
call sym._CreateBoard.constprop.0
jmp 0x402ee0
mov eax, dword [0x40702c]
mov dword [esp], eax
call sym._GetMenu_4
sub esp, 4
mov ebx, eax
mov dword [esp + 8], 0
mov eax, dword [0x407174]
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 4], eax
call sym._CheckMenuItem_12
mov dword [0x407174], 0
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ed
call sym._CheckMenuItem_12
mov dword [0x4070a0], 9
mov dword [0x40709c], 9
sub esp, 0xc
mov dword [0x4070a4], 0xa
call sym._CreateBoard.constprop.0
jmp 0x402ee0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [esp], eax
call sym._CheckMenuItem_12
sub esp, 0xc
jmp 0x402ee0