Function at 0x402a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp + 8]
push ebx
sub esp, 0x448
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
cmp esi, 0x208
ja case.0x402a5d.515
cmp esi, 0x1ff
jbe 0x402a68
lea eax, [esi - 0x200]
cmp eax, 8
ja case.0x402a5d.515
jmp dword [eax*4 + 0x406184]
cmp esi, 0xf
je 0x4031c0
jbe 0x402aa8
cmp esi, 0x111
je 0x4032d0
cmp esi, 0x113
jne case.0x402a5d.515
cmp dword [0x408188], 1
je 0x403705
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp esi, 2
je 0x403170
cmp esi, 3
jne 0x402ae0
test byte [section..data], 8
jne 0x4036d0
movsx eax, dx
sar edx, 0x10
mov dword [0x408084], eax
mov dword [0x408088], edx
jmp 0x402a98
cmp esi, 1
jne case.0x402a5d.515
mov eax, dword [edx + 4]
mov dword [0x40802c], ebx
mov dword [esp + 4], 4
mov ebx, dword [sym.imp.user32.dll_LoadBitmapW]
mov dword [0x408028], eax
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
lea ebx, [ebp - 0x414]
sub esp, 8
mov dword [0x408038], eax
lea eax, [ebp - 0x410]
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 dword [sym.imp.advapi32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 4
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x410]
mov dword [esp + 0x10], 0x408084
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Xpos
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x402bd0
mov dword [0x408084], 0
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x408088
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Ypos
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x402c1c
mov dword [0x408088], 0
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x40809c
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Height
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x402c68
mov dword [0x40809c], 9
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x4080a0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Width
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x402cb4
mov dword [0x4080a0], 9
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x4080a4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40607a
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x402d00
mov dword [0x4080a4], 0xa
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x408174
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Difficulty
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x402d4c
mov dword [0x408174], 0
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x408020
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Mark
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x403310
lea eax, [ebp - 0x40c]
mov edx, 0x4080a8
mov dword [ebp - 0x420], esi
xor edi, edi
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
mov esi, edx
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x41c]
add edi, 1
mov dword [esp + 4], str.Name_u
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x418]
mov dword [ebp - 0x418], 0x40
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x424]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x410]
mov dword [esp + 0x10], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x420]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
call eax
mov edx, esi
sub esp, 0x18
test eax, eax
jne 0x403140
mov eax, dword [ebp - 0x424]
nop
movzx ecx, word [eax]
test cx, cx
je 0x402e4b
mov word [edx], cx
add eax, 2
lea ecx, [ebp - 0x1ce]
add edx, 2
cmp eax, ecx
jne 0x402e30
xor eax, eax
mov word [edx], ax
add esi, 0x40
cmp edi, 3
jne 0x402db9
xor edx, edx
mov edi, 0x408168
mov esi, edx
mov eax, dword [ebp - 0x41c]
add esi, 1
mov dword [esp + 4], str.Time_u
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x418]
mov dword [ebp - 0x418], 4
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x410]
mov dword [esp + 0x10], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x420]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
call eax
sub esp, 0x18
test eax, eax
je 0x402ecf
mov dword [edi], 0x3e7
add edi, 4
cmp esi, 3
jne 0x402e65
mov eax, dword [ebp - 0x410]
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, dword [sym.imp.user32.dll_CheckMenuItem]
mov ebx, eax
mov eax, dword [0x408174]
sub esp, 4
mov dword [esp + 8], 8
add eax, 0x3ed
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
mov ecx, dword [0x408020]
sub esp, 0xc
test ecx, ecx
jne 0x4032f0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [esp], ebx
call esi
sub esp, 0xc
mov dword [esp], 0x408020
call sym._CheckLevel
call sym._CreateBoard.constprop.0
jmp 0x402a98
test byte [section..data], 8
je case.0x402a5d.515
mov dword [esp + 0xc], str.Unknown_WM_COMMAND_command_message_received_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], ecx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
mov dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov dword [edi + 4], esi
mov dword [edi], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
test cl, 0x10
jne 0x403320
mov eax, ecx
and eax, 3
cmp eax, 3
je 0x403320
and ecx, 1
mov eax, 0x201
jne 0x4030ed
jmp 0x402a98
test byte [section..data], 8
jne 0x403478
and ecx, 6
cmp ecx, 1
mov ecx, edx
movsx edx, dx
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 dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x402a98
test byte [section..data], 8
jne 0x403430
and ecx, 6
cmp ecx, 1
mov ecx, edx
movsx edx, dx
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 dword [sym.imp.user32.dll_ReleaseCapture]
jmp 0x402a98
test byte [section..data], 8
jne 0x4033e8
and ecx, 1
mov eax, 0x204
je 0x4030ed
mov dword [0x408178], 0
mov eax, 0x207
mov dword [0x40817c], 0
jmp 0x4030ed
test byte [section..data], 8
jne 0x4033b0
mov dword [esp], 0x207
mov ecx, edx
mov eax, ebx
movsx edx, dx
sar ecx, 0x10
call sym._TestBoard.constprop.0
jmp 0x402a98
test byte [section..data], 8
jne 0x403368
and ecx, 1
cmp ecx, 1
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x208
mov dword [esp], eax
mov ecx, edx
mov eax, ebx
movsx edx, dx
sar ecx, 0x10
call sym._TestBoard.constprop.0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
test byte [section..data], 8
jne 0x403330
mov dword [esp], 0x208
mov ecx, edx
mov eax, ebx
movsx edx, dx
sar ecx, 0x10
call sym._TestBoard.constprop.0
jmp 0x402a98
mov eax, dword [0x408028]
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], 0x44e
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
jmp 0x402e50
mov dword [esp], 0x408020
call sym._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
mov dword [esp], 0
call dword [sym.imp.user32.dll_PostQuitMessage]
sub esp, 4
jmp 0x402a98
test byte [section..data], 8
jne 0x4036a0
lea eax, [ebp - 0x20c]
mov dword [esp], ebx
lea esi, [ebp - 0x204]
mov dword [ebp - 0x424], eax
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_BeginPaint]
sub esp, 8
mov dword [ebp - 0x428], eax
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov edi, dword [sym.imp.user32.dll_IntersectRect]
sub esp, 4
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 8], 0x40806c
mov dword [esp + 4], esi
mov dword [ebp - 0x41c], eax
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x403668
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], 0x40805c
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x403638
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], 0x40804c
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x403588
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], 0x40803c
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x4034c0
mov eax, dword [ebp - 0x420]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteDC]
mov eax, dword [ebp - 0x424]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndPaint]
sub esp, 8
jmp 0x402a98
movzx eax, cx
sub eax, 0x3e9
cmp eax, 8
ja case.default.0x4032e1
jmp dword [eax*4 + 0x4061a8]
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f1
mov dword [esp], ebx
call esi
sub esp, 0xc
jmp 0x402f46
mov dword [0x408020], 1
jmp 0x402d92
mov eax, 0x207
jmp 0x4030ed
mov dword [esp + 0xc], str.WM_MBUTTONUP_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
jmp 0x40311d
mov dword [esp + 0xc], str.WM_RBUTTONUP_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], ecx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
jmp 0x4030dd
mov dword [esp + 0xc], str.WM_MBUTTONDOWN_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
jmp 0x4030b5
mov dword [esp + 0xc], str.WM_RBUTTONDOWN_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], ecx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
jmp 0x40307d
mov dword [esp + 0xc], str.WM_LBUTTONUP_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], ecx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
jmp 0x40303d
mov dword [esp + 0xc], str.WM_LBUTTONDOWN_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], ecx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
jmp 0x402ffd
mov eax, dword [0x408030]
mov esi, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x420]
mov dword [esp], eax
mov eax, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [ebp - 0x42c], eax
call eax
mov dword [ebp - 0x41c], eax
mov eax, dword [0x40809c]
sub esp, 8
test eax, eax
je 0x40355f
mov dword [ebp - 0x430], ebx
lea esi, [esi]
mov edx, dword [0x4080a0]
test esi, esi
mov edi, 1
sete bl
test edx, edx
je 0x403552
lea esi, [esi]
test edi, edi
je 0x403547
test bl, bl
jne 0x403547
cmp eax, esi
jb 0x403547
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x428]
mov ecx, edi
mov dword [esp], esi
mov edx, dword [ebp - 0x420]
call sym._DrawMine.part.0.constprop.0
mov eax, dword [0x40809c]
add edi, 1
cmp edi, dword [0x4080a0]
jbe 0x403518
add esi, 1
cmp esi, eax
jbe 0x403500
mov ebx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x41c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x420]
mov dword [esp], eax
mov eax, dword [ebp - 0x42c]
call eax
sub esp, 8
jmp 0x40329b
mov eax, dword [0x408034]
mov ecx, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x430], ecx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov eax, dword [0x408184]
sub esp, 8
mov dword [esp], edx
lea eax, [eax + eax*2]
mov dword [esp + 0x20], 0xcc0020
shl eax, 3
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x420]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], eax
mov eax, dword [0x408050]
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], eax
mov eax, dword [0x40804c]
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x420]
sub esp, 0x24
mov ecx, dword [ebp - 0x430]
mov dword [esp + 4], edx
mov dword [esp], eax
call ecx
sub esp, 8
jmp 0x403279
mov eax, dword [0x408060]
mov ecx, dword [0x40808c]
mov edx, dword [ebp - 0x420]
mov dword [esp + 4], eax
mov eax, dword [0x40805c]
mov dword [esp], eax
mov eax, dword [ebp - 0x428]
call sym._DrawLeds.constprop.0
jmp 0x403257
mov eax, dword [0x408070]
mov edx, dword [ebp - 0x420]
mov ecx, dword [0x4080a4]
sub ecx, dword [0x408090]
mov dword [esp + 4], eax
mov eax, dword [0x40806c]
mov dword [esp], eax
mov eax, dword [ebp - 0x428]
call sym._DrawLeds.constprop.0
jmp 0x403235
mov dword [esp + 0xc], str.WM_PAINT_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4031cd
mov dword [esp + 0xc], str.WM_MOVE_n
mov dword [esp + 8], 0x4061dc
mov dword [esp + 4], 0x405000
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
jmp 0x402ac3
add dword [0x40808c], 1
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40805c
mov dword [esp], ebx
call dword [sym.imp.user32.dll_RedrawWindow]
sub esp, 0x10
jmp 0x402a98
mov eax, dword [0x40802c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov esi, dword [sym.imp.user32.dll_CheckMenuItem]
mov ebx, eax
mov eax, dword [0x408174]
sub esp, 4
mov dword [esp + 8], 0
add eax, 0x3ed
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
mov dword [0x408174], 0
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ed
mov dword [esp], ebx
call esi
mov eax, 9
mov edx, 9
mov dword [0x4080a4], 0xa
mov dword [0x40809c], eax
sub esp, 0xc
mov dword [0x4080a0], edx
call sym._CreateBoard.constprop.0
jmp 0x402a98
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMenu]
mov ecx, dword [0x408020]
xor edx, edx
sub esp, 4
test ecx, ecx
sete dl
mov dword [0x408020], edx
jne 0x403aaa
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f1
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp 0x402a98
mov eax, dword [0x40802c]
mov dword [esp + 0x10], 0x408020
mov dword [esp + 0xc], sym._CustomDlgProc_16
mov dword [esp + 8], eax
mov eax, dword [0x408028]
mov dword [esp + 4], 3
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
test eax, eax
jne case.0x4032e1.1001
mov eax, dword [0x40802c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov esi, dword [sym.imp.user32.dll_CheckMenuItem]
mov ebx, eax
mov eax, dword [0x408174]
sub esp, 4
mov dword [esp + 8], 0
add eax, 0x3ed
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
mov dword [0x408174], 3
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3f0
mov dword [esp], ebx
call esi
sub esp, 0xc
jmp case.0x4032e1.1001
mov eax, dword [0x40802c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov esi, dword [sym.imp.user32.dll_CheckMenuItem]
mov ebx, eax
mov eax, dword [0x408174]
sub esp, 4
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call esi
mov dword [0x408174], 2
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ef
call esi
mov eax, 0x10
mov edx, 0x1e
mov dword [0x4080a4], 0x63
sub esp, 0xc
mov dword [0x40809c], eax
mov dword [0x4080a0], edx
call sym._CreateBoard.constprop.0
jmp 0x402a98
mov eax, dword [0x40802c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov esi, dword [sym.imp.user32.dll_CheckMenuItem]
mov ebx, eax
mov eax, dword [0x408174]
sub esp, 4
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call esi
mov dword [0x408174], 1
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ee
call esi
mov eax, 0x10
mov edx, 0x10
mov dword [0x4080a4], 0x28
sub esp, 0xc
mov dword [0x40809c], eax
mov dword [0x4080a0], edx
call sym._CreateBoard.constprop.0
jmp 0x402a98
mov edx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x408028]
lea esi, [ebp - 0x40c]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x41c], edx
mov dword [esp + 4], 0x44d
mov dword [esp], eax
call edx
mov eax, dword [0x408028]
mov edx, dword [ebp - 0x41c]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 0x44f
mov dword [esp], eax
call edx
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 dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x4092a4]
sub esp, 0x10
jmp 0x402a98
mov eax, dword [0x408028]
mov dword [esp + 0x10], 0x408020
mov dword [esp + 0xc], sym._TimesDlgProc_16
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
jmp 0x402a98
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x402a98
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp 0x402a98