Function at 0x401c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x448
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp esi, 0x208
ja case.0x401cbb.515
cmp esi, 0x1ff
jbe 0x401cc8
lea eax, [esi - 0x200]
cmp eax, 8
ja case.0x401cbb.515
jmp dword [eax*4 + 0x406184]
cmp esi, 0xf
je 0x402430
jbe 0x401d08
cmp esi, 0x111
je 0x402540
cmp esi, 0x113
jne case.0x401cbb.515
cmp dword [0x4051e8], 1
je 0x402911
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp esi, 2
je 0x4023e0
cmp esi, 3
jne 0x401d40
test byte [0x405054], 8
jne 0x4028e8
mov edx, edi
movsx eax, di
sar edx, 0x10
mov dword [0x4050e4], eax
mov dword [0x4050e8], edx
jmp 0x401cf8
cmp esi, 1
jne case.0x401cbb.515
mov eax, dword [edi + 4]
mov dword [0x40508c], ebx
mov dword [esp + 4], 4
mov ebx, dword [sym.imp.user32.dll_LoadBitmapW]
mov dword [0x405088], eax
mov dword [esp], eax
call ebx
mov dword [0x405090], eax
mov eax, dword [0x405088]
sub esp, 8
mov dword [esp + 4], 2
mov dword [esp], eax
call ebx
mov dword [0x405094], eax
mov eax, dword [0x405088]
sub esp, 8
mov dword [esp + 4], 3
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [0x405098], 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 ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x14
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [esp + 0x10], 0x4050e4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Xpos
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x401e30
mov dword [0x4050e4], 0
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x4050e8
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Ypos
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x401e82
mov dword [0x4050e8], 0
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x4050fc
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Height
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x401ed4
mov dword [0x4050fc], 9
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x405100
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Width
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x401f26
mov dword [0x405100], 9
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x405104
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40607a
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x401f78
mov dword [0x405104], 0xa
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x4051d4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Difficulty
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x401fca
mov dword [0x4051d4], 0
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], 0x405080
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Mark
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
jne 0x402580
lea eax, [ebp - 0x40c]
mov edi, 0x405108
xor esi, esi
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x41c]
inc esi
mov dword [esp + 4], str.Name_u
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x424]
lea ecx, [ebp - 0x418]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x414]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x410]
mov dword [esp + 0x10], edx
mov dword [ebp - 0x418], 0x40
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call ebx
mov edx, edi
sub esp, 0x18
test eax, eax
jne 0x4023b0
mov eax, dword [ebp - 0x424]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x4020cb
mov word [edx], cx
add eax, 2
lea ecx, [ebp - 0x1ce]
add edx, 2
cmp eax, ecx
jne 0x4020b0
xor eax, eax
mov word [edx], ax
add edi, 0x40
cmp esi, 3
jne 0x402035
mov dword [ebp - 0x420], ebx
mov ebx, dword [ebp - 0x41c]
mov esi, 0x4051c8
xor edi, edi
inc edi
mov dword [esp + 4], str.Time_u
mov dword [esp + 8], edi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x418], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x420]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call eax
sub esp, 0x18
test eax, eax
je 0x402151
mov dword [esi], 0x3e7
add esi, 4
cmp edi, 3
jne 0x4020ef
mov eax, dword [ebp - 0x410]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40508c]
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 [0x4051d4]
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 [0x405080]
sub esp, 0xc
test ecx, ecx
jne 0x402560
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [esp], ebx
call esi
sub esp, 0xc
mov dword [esp], 0x405080
call sym._CheckLevel
call sym._CreateBoard.constprop.0
jmp 0x401cf8
test byte [0x405054], 8
je case.0x401cbb.515
mov dword [esp + 0xc], str.Unknown_WM_COMMAND_command_message_received_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
mov dword [ebp + 0x14], edi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
test dl, 0x10
jne 0x402590
mov eax, edx
and eax, 3
cmp eax, 3
je 0x402590
and edx, 1
mov eax, 0x201
jne 0x40235d
jmp 0x401cf8
test byte [0x405054], 8
jne 0x4026a8
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 dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x401cf8
test byte [0x405054], 8
jne 0x402670
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 dword [sym.imp.user32.dll_ReleaseCapture]
jmp 0x401cf8
test byte [0x405054], 8
jne 0x402638
and edx, 1
mov eax, 0x204
je 0x40235d
mov dword [0x4051d8], 0
mov eax, 0x207
mov dword [0x4051dc], 0
jmp 0x40235d
test byte [0x405054], 8
jne 0x402608
mov dword [esp], 0x207
mov ecx, edi
movsx edx, di
mov eax, ebx
sar ecx, 0x10
call sym._TestBoard.constprop.0
jmp 0x401cf8
test byte [0x405054], 8
jne 0x4025d0
and edx, 1
cmp edx, 1
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x208
mov dword [esp], eax
mov ecx, edi
mov eax, ebx
movsx edx, di
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 [0x405054], 8
jne 0x4025a0
mov dword [esp], 0x208
mov ecx, edi
movsx edx, di
mov eax, ebx
sar ecx, 0x10
call sym._TestBoard.constprop.0
jmp 0x401cf8
mov eax, dword [0x405088]
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], edi
mov dword [esp + 4], 0x44e
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
jmp 0x4020d0
mov dword [esp], 0x405080
call sym._SaveBoard
mov eax, dword [0x405094]
mov ebx, dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [esp], eax
call ebx
mov eax, dword [0x405098]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [0x405090]
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 0x401cf8
test byte [0x405054], 8
jne 0x4028b8
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], 0x4050cc
mov dword [esp + 4], esi
mov dword [ebp - 0x41c], eax
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x402880
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], 0x4050bc
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x402850
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], 0x4050ac
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x4027a0
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], 0x40509c
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x4026e0
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 0x401cf8
movzx eax, dx
sub eax, 0x3e9
cmp eax, 8
ja case.default.0x402551
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 0x4021c8
mov dword [0x405080], 1
jmp 0x402016
mov eax, 0x207
jmp 0x40235d
mov dword [esp + 0xc], str.WM_MBUTTONUP_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40238d
mov dword [esp + 0xc], str.WM_RBUTTONUP_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
jmp 0x40234d
mov dword [esp + 0xc], str.WM_MBUTTONDOWN_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402325
mov dword [esp + 0xc], str.WM_RBUTTONDOWN_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
jmp 0x4022ed
mov dword [esp + 0xc], str.WM_LBUTTONUP_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
jmp 0x4022ad
mov dword [esp + 0xc], str.WM_LBUTTONDOWN_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
mov dword [ebp - 0x41c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x41c]
jmp 0x40226d
mov eax, dword [0x405090]
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 [0x4050fc]
sub esp, 8
test eax, eax
je 0x40277b
mov dword [ebp - 0x430], ebx
lea esi, [esi]
mov edx, dword [0x405100]
test esi, esi
mov edi, 1
sete bl
test edx, edx
je 0x402770
lea esi, [esi]
test edi, edi
je 0x402767
test bl, bl
jne 0x402767
cmp eax, esi
jb 0x402767
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 [0x4050fc]
inc edi
cmp edi, dword [0x405100]
jbe 0x402738
inc esi
cmp esi, eax
jbe 0x402720
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 0x40250b
mov eax, dword [0x405094]
mov edx, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x430], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov eax, dword [0x4051e4]
sub esp, 8
mov dword [esp + 0x14], edx
lea eax, [eax + eax*2]
mov dword [esp], ecx
shl eax, 3
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], eax
mov eax, dword [0x4050b0]
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov eax, dword [0x4050ac]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0xc], 0x18
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x42c]
sub esp, 0x24
mov dword [esp], edx
mov edx, dword [ebp - 0x430]
mov dword [esp + 4], ecx
call edx
sub esp, 8
jmp 0x4024e9
mov eax, dword [0x4050c0]
mov ecx, dword [0x4050ec]
mov edx, dword [ebp - 0x420]
mov dword [esp + 4], eax
mov eax, dword [0x4050bc]
mov dword [esp], eax
mov eax, dword [ebp - 0x428]
call sym._DrawLeds.constprop.0
jmp 0x4024c7
mov eax, dword [0x4050d0]
mov edx, dword [ebp - 0x420]
mov ecx, dword [0x405104]
sub ecx, dword [0x4050f0]
mov dword [esp + 4], eax
mov eax, dword [0x4050cc]
mov dword [esp], eax
mov eax, dword [ebp - 0x428]
call sym._DrawLeds.constprop.0
jmp 0x4024a5
mov dword [esp + 0xc], str.WM_PAINT_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40243d
mov dword [esp + 0xc], str.WM_MOVE_n
mov dword [esp + 8], 0x406290
mov dword [esp + 4], 0x405054
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401d23
inc dword [0x4050ec]
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4050bc
mov dword [esp], ebx
call dword [sym.imp.user32.dll_RedrawWindow]
sub esp, 0x10
jmp 0x401cf8
mov eax, dword [0x40508c]
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 [0x4051d4]
sub esp, 4
mov dword [esp + 8], 0
add eax, 0x3ed
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
mov dword [0x4051d4], 0
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ed
mov dword [esp], ebx
call esi
mov dword [0x405100], 9
mov dword [0x4050fc], 9
sub esp, 0xc
mov dword [0x405104], 0xa
call sym._CreateBoard.constprop.0
jmp 0x401cf8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMenu]
mov ecx, dword [0x405080]
xor edx, edx
sub esp, 4
test ecx, ecx
sete dl
mov dword [0x405080], edx
jne 0x402cb2
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 0x401cf8
mov eax, dword [0x40508c]
mov dword [esp + 0x10], 0x405080
mov dword [esp + 0xc], sym._CustomDlgProc_16
mov dword [esp + 8], eax
mov eax, dword [0x405088]
mov dword [esp + 4], 3
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
test eax, eax
jne case.0x402551.1001
mov eax, dword [0x40508c]
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 [0x4051d4]
sub esp, 4
mov dword [esp + 8], 0
add eax, 0x3ed
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
mov dword [0x4051d4], 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.0x402551.1001
mov eax, dword [0x40508c]
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 [0x4051d4]
sub esp, 4
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call esi
mov dword [0x4051d4], 2
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ef
call esi
mov dword [0x405100], 0x1e
mov dword [0x4050fc], 0x10
sub esp, 0xc
mov dword [0x405104], 0x63
call sym._CreateBoard.constprop.0
jmp 0x401cf8
mov eax, dword [0x40508c]
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 [0x4051d4]
sub esp, 4
mov dword [esp], ebx
add eax, 0x3ed
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call esi
mov dword [0x4051d4], 1
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0x3ee
call esi
mov dword [0x405100], 0x10
mov dword [0x4050fc], 0x10
sub esp, 0xc
mov dword [0x405104], 0x28
call sym._CreateBoard.constprop.0
jmp 0x401cf8
mov edx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x405088]
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 [0x405088]
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 [0x405088]
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 [0x4082a4]
sub esp, 0x10
jmp 0x401cf8
mov eax, dword [0x405088]
mov dword [esp + 0x10], 0x405080
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 0x401cf8
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 0x401cf8
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 0x401cf8