Function at 0x401940
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424171
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3f0], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3d4], esi
push dword [esi + 0x18]
call dword [sym.imp.mfc140u.dll_CDC::FromHandle]
mov edi, eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x3ac], edi
mov dword [ebp - 0x45c], eax
mov eax, dword [esi + 0x2c]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
movups xmmword [ebp - 0x20], xmm0
push 0xf
movups xmmword [ebp - 0x30], xmm0
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x400], eax
call esi
push 5
mov dword [ebp - 0x3fc], eax
call esi
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x448], 0
mov dword [ebp - method.CFont.virtual_0], vtable.CFont.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x458], 0
call fcn.00401590
mov esi, 0xff
mov dword [ebp - 0x3c4], esi
test eax, eax
jne 0x401abd
mov edx, dword [ebp - 0x3fc]
mov eax, edx
movsd xmm2, qword [0x42db38]
shr eax, 0x10
mov dword [ebp - 0x3b0], eax
mov eax, esi
movzx ecx, dl
sub eax, ecx
movd xmm0, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movzx ecx, dx
shr ecx, 8
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
cvttsd2si eax, xmm1
mov dword [ebp - 0x3c8], eax
mov eax, esi
sub eax, ecx
movd xmm1, eax
mov eax, dword [ebp - 0x3b0]
cvtdq2pd xmm1, xmm1
movzx ecx, al
mov eax, esi
sub eax, ecx
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
cvttsd2si edx, xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx ecx, al
shl ecx, 8
movzx eax, dl
or ecx, eax
mov eax, dword [ebp - 0x3c8]
shl ecx, 8
movzx eax, al
or ecx, eax
mov dword [ebp - 0x3fc], ecx
mov dword [ebp - 0x40c], 0
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
mov dword [ebp - 0x438], 0
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
push dword [ebp - 0x3d8]
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0x43c]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
push dword [ebp - 0x3fc]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
mov ecx, dword [ebp - 0x3f0]
mov eax, dword [ecx + 0x30]
mov ecx, dword [ebp - 0x3d4]
add eax, 7
mov dword [ebp - 0x3b8], eax
mov eax, dword [ecx + 0x10]
test al, 2
je 0x401d19
cmp dword [0x435e30], 0
jne 0x401d19
test al, 1
je 0x401b55
and eax, 0xfffffffe
mov dword [ecx + 0x10], eax
push 0x34
call dword [sym.imp.mfc140u.dll_operator]
mov esi, eax
add esp, 4
mov dword [ebp - 0x408], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x401c64
mov ecx, esi
call dword [sym.imp.mfc140u.dll_CDC::CDC]
mov dword [esi], vtable.BCMenuMemDC.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], vtable.CBitmap.0
mov eax, dword [ebp - 0x3d4]
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 5
add eax, 0x1c
push eax
mov eax, dword [sym.imp.USER32.dll_CopyRect]
push ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
call eax
xor eax, eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
sete al
mov dword [esi + 0x30], eax
test ecx, ecx
jne 0x401c48
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call dword [sym.imp.mfc140u.dll_CDC::Attach]
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea edi, [esi + 0x10]
push eax
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
test edi, edi
jne 0x401c1c
xor eax, eax
jmp 0x401c1f
mov eax, dword [edi + 4]
push eax
push dword [esi + 4]
call dword [sym.imp.mfc140u.dll_CDC::SelectGdiObject]
push dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov ecx, esi
push dword [esi + 0x20]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.mfc140u.dll_CDC::SetWindowOrg]
mov eax, esi
mov dword [ebp - 0x3ac], esi
jmp 0x401c6c
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, esi
mov dword [ebp - 0x3ac], esi
jmp 0x401c6c
xor eax, eax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x3a8], 0x1f8
mov dword [ebp - 0x1b0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x3a8]
mov ecx, 0x1f4
cmp dword [ebp - 0x1ac], 6
push 0
cmovb eax, ecx
lea ecx, [ebp - 0x3a8]
push ecx
push eax
push 0x29
mov dword [ebp - 0x3a8], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x9c]
mov ecx, 0x17
lea esi, [ebp - 0x2c8]
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [ebp - 0x44c]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
mov edi, dword [ebp - 0x3ac]
lea ecx, [ebp - 0x44c]
push ecx
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
call eax
mov esi, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3d4]
mov dword [ebp - 0x458], eax
test dword [ebp - 0x400], 0x800
je 0x401dc0
add ecx, 0x1c
lea eax, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0x438]
mov esi, dword [sym.imp.USER32.dll_FillRect]
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call esi
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3b8]
add eax, ecx
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
sub eax, ecx
sar eax, 1
add ecx, eax
mov eax, dword [ebp - 0x28]
add eax, 7
mov dword [ebp - 0x1c], ecx
push 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 6
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DrawEdge]
push dword [ebp - 0x40c]
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call esi
mov eax, dword [ebp - 0x3fc]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov esi, dword [sym.imp.mfc140u.dll_CGdiObject::DeleteObject]
jmp 0x402e6e
xor eax, eax
mov dword [ebp - 0x404], 0
push 7
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x3b4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
mov dword [ebp - 0x408], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
mov dword [ebp - 0x3e4], eax
shr ecx, 0x10
mov dword [ebp - 0x418], ecx
movzx ecx, ax
shr ecx, 8
sub esi, ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x464], xmm0
call fcn.00401590
test eax, eax
movd xmm3, esi
mov eax, dword [ebp - 0x3e4]
movzx ecx, al
mov eax, dword [ebp - 0x3c4]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
jne 0x401ecd
movsd xmm2, qword [0x42db70]
sub eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
cvtdq2pd xmm0, xmm3
cvttsd2si eax, xmm1
mulsd xmm0, xmm2
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x418]
movzx ecx, al
mov eax, dword [ebp - 0x3c4]
sub eax, ecx
movsd qword [ebp - 0x38], xmm0
addsd xmm0, qword [ebp - 0x464]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
cvttsd2si edx, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx ecx, al
movzx eax, dl
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x3b0]
jmp 0x401f56
movsd xmm2, qword [0x42db68]
sub eax, ecx
cvtdq2pd xmm3, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm3
mulsd xmm0, xmm2
cvttsd2si eax, xmm1
addsd xmm0, qword [ebp - 0x464]
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x418]
movzx ecx, al
mov eax, dword [ebp - 0x3c4]
sub eax, ecx
cvttsd2si edx, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm3
mulsd xmm0, qword [0x42db70]
cvttsd2si eax, xmm1
movsd qword [ebp - 0x38], xmm0
movzx ecx, al
movzx eax, dl
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x3b0]
movzx eax, al
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x3cc], ecx
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
mov dword [ebp - 0x428], 0
mov dword [ebp - method.CPen.virtual_0], vtable.CPen.0
push dword [ebp - 0x3d8]
xor eax, eax
mov byte [ebp - 4], 7
push eax
push eax
mov dword [ebp - 0x3bc], 0xffffffff
mov dword [ebp - 0x3e0], 0xffffffff
mov dword [ebp - 0x3b0], 1
mov dword [ebp - 0x400], 2
mov dword [ebp - 0x3c0], eax
mov dword [ebp - 0x3d0], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [ebp - 0x42c]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
push dword [ebp - 0x3cc]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0x434]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
mov eax, dword [ebp - 0x3d4]
add eax, 0x1c
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [sym.imp.USER32.dll_CopyRect]
call eax
mov eax, dword [ebp - 0x3d4]
lea ecx, [ebp - 0x3e8]
movups xmm0, xmmword [ebp - 0x20]
mov eax, dword [eax + 0x10]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x414], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov eax, dword [ebp - 0x3d4]
mov byte [ebp - 4], 8
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x3f8], eax
test eax, eax
je 0x402292
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x3bc], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x3e0], ecx
mov dword [ebp - 0x3c0], eax
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x3f4], eax
mov dword [ebp - 0x3c8], 1
mov ecx, dword [ecx]
test ecx, ecx
je 0x4020a7
push ecx
lea ecx, [ebp - 0x3dc]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov eax, dword [ebp - 0x3f4]
push eax
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edx, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3c0]
mov eax, dword [edx + 0x2c]
mov edx, dword [ebp - 0x3e0]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c8], eax
test edx, edx
jne 0x40211c
test ecx, ecx
je 0x40211c
push dword [ecx + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov ecx, dword [ebp - 0x3d0]
cmp eax, 2
mov eax, dword [ebp - 0x3c8]
mov edx, 1
cmovg ecx, edx
mov edx, dword [ebp - 0x3e0]
mov dword [ebp - 0x3d0], ecx
mov ecx, dword [ebp - 0x3c0]
cmp dword [ebp - 0x3bc], 0
jge 0x4021fd
test edx, edx
jns 0x4021fd
test eax, eax
js 0x4021fd
lea edx, [eax + 1]
mov dword [ebp - 0x3e0], eax
mov ecx, 0x435e60
mov dword [ebp - 0x3bc], 0
mov dword [ebp - 0x3c0], ecx
mov dword [ebp - 0x3c8], edx
cmp edx, dword [0x43506c]
jge 0x4021fd
lea edx, [eax + 2]
cmp edx, dword [0x43506c]
jge 0x4021fd
cmp eax, dword [0x43506c]
jge 0x402246
mov edi, dword [0x435068]
mov eax, dword [edi + eax*4]
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x3c8]
test eax, eax
js 0x402246
mov ecx, edi
mov edi, dword [ebp - 0x3dc]
cmp dword [ecx + eax*4], edi
mov edi, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 0x3c0]
jne 0x4021fd
test edx, edx
js 0x402246
cmp edx, dword [0x43506c]
jge 0x402246
mov edi, dword [0x435068]
mov ecx, dword [ebp - 0x3dc]
cmp dword [edi + edx*4], ecx
mov edi, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 0x3c0]
jne 0x4021fd
mov dword [ebp - 0x3d0], 1
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x400], edx
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x3bc]
test dl, 8
je 0x40225e
test eax, eax
jns 0x40225e
mov eax, dword [ebp - 0x3f0]
test dl, 1
je 0x40224c
cmp dword [eax + 0x4c], 0
jle 0x40224c
mov eax, edx
mov dword [ebp - 0x3b4], 1
and eax, 1
mov dword [ebp - 0x3c8], ecx
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3f8], eax
jmp 0x4022bf
call dword [sym.imp.mfc140u.dll_AfxThrowInvalidArgException]
cmp dword [eax + 0x50], 0
jle 0x4022a6
mov dword [ebp - 0x3b4], 1
jmp 0x4022a6
cmp eax, 0xffffffff
je 0x4022a6
mov eax, edx
mov dword [ebp - 0x404], 1
and al, 3
cmp al, 1
jne 0x402281
mov dword [ebp - 0x3ec], 1
jmp 0x4022a6
test dl, 2
je 0x4022a6
mov dword [ebp - 0x41c], 1
jmp 0x4022a6
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov edx, dword [ebp - 0x414]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x3c8], ecx
and eax, 1
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3f8], eax
je 0x402313
lea eax, [ebp - 0x42c]
mov ecx, edi
push eax
call dword [sym.imp.mfc140u.dll_Ordinal_13086]
push dword [ebp - 0x430]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3ac]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x3ac]
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov ecx, dword [ebp - 0x3ac]
push edi
call dword [sym.imp.mfc140u.dll_Ordinal_13086]
jmp 0x4023aa
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3b8]
add eax, ecx
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x42c]
mov ecx, edi
push eax
call dword [sym.imp.mfc140u.dll_Ordinal_13086]
push dword [ebp - 0x438]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3ac]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x40c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x3ac]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
push edi
mov edi, dword [ebp - 0x3ac]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_13086]
mov eax, dword [ebp - 0x3d8]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov eax, dword [ebp - 0x3fc]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov ecx, dword [ebp - 0x3f0]
xor edx, edx
mov eax, dword [ebp - 0x14]
movsd xmm1, qword [0x42db60]
sub eax, dword [ecx + 0x34]
sub eax, dword [ebp - 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
addsd xmm0, xmm1
cvttsd2si eax, xmm0
test eax, eax
cmovs eax, edx
mov edx, dword [ebp - 0x3b8]
mov dword [ebp - 0x3f4], eax
mov eax, edx
sub eax, dword [ecx + 0x30]
xor ecx, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
addsd xmm0, xmm1
cvttsd2si eax, xmm0
test eax, eax
cmovs eax, ecx
mov dword [ebp - 0x3d8], eax
mov eax, dword [ebp - 0x3b4]
test eax, eax
jne 0x402434
cmp dword [ebp - 0x404], ecx
jne 0x402434
cmp dword [ebp - 0x3ec], ecx
jne 0x402434
cmp dword [ebp - 0x41c], ecx
je 0x4025f3
mov eax, dword [ebp - 0x14]
lea edi, [edx - 1]
mov ecx, dword [ebp - 0x20]
dec eax
mov edx, dword [ebp - 0x1c]
add edi, ecx
mov dword [ebp - 0x404], eax
inc edx
push dword [ebp - 0x404]
lea eax, [ecx + 1]
push edi
push edx
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x3b4]
test eax, eax
je 0x4024d5
mov eax, dword [ebp - 0x3f0]
cmp dword [eax + 0x44], 0
je 0x4024cf
push dword [ebp - 0x40c]
mov edi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [ebp - 0x3f4]
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3d8]
add ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x3dc], 0
mov eax, dword [ebp - 0x3f0]
mov esi, dword [edi + 4]
push 1
push edx
mov eax, dword [eax + 0x44]
push ecx
push esi
je 0x4024c5
push 1
push dword [eax + 4]
jmp 0x402b1e
push 0
push dword [eax + 4]
jmp 0x402b1e
mov eax, dword [ebp - 0x3b4]
cmp dword [ebp - 0x41c], 0
je 0x4027fa
cmp dword [ebp - 0x3ec], 0
jne 0x4025e5
mov dword [ebp - 0x420], 0
mov dword [ebp - method.CBitmap.virtual_0], vtable.CBitmap.0
mov edi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x424]
mov esi, dword [ebp - 0x3f0]
mov ecx, esi
push eax
push dword [ebp - 0x3e0]
mov eax, dword [ebp - 0x3c0]
push eax
push edi
mov byte [ebp - 4], 0xa
call fcn.00402f10
cmp dword [ebp - 0x3f8], 0
mov eax, dword [ebp - 0x3cc]
cmove eax, dword [ebp - 0x3fc]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
sub esp, 8
cmp dword [esi + 0x40], 0
je 0x40257f
push dword [ebp - 0x420]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3f4]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x3d8]
push eax
mov eax, dword [ebp - 0x3d4]
push dword [eax + 0x18]
call fcn.00404a30
jmp 0x4025a2
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3f4]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x3d8]
push eax
push edi
call fcn.004054e0
cmp dword [ebp - 0x3dc], 0
je 0x4025bf
mov eax, dword [ebp - 0x3e4]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov eax, dword [sym.imp.mfc140u.dll_CGdiObject::DeleteObject]
lea ecx, [ebp - 0x424]
call eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x424]
mov dword [ebp - method.CBitmap.virtual_0], vtable.CBitmap.0
jmp 0x402a97
movsd xmm1, qword [0x42db60]
mov edx, dword [ebp - 0x3b8]
mov edi, dword [ebp - 0x3ac]
cmp dword [ebp - 0x3bc], 0
jge 0x402b63
test byte [ebp - 0x414], 8
je 0x402b63
test eax, eax
jne 0x402b63
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
sub eax, 0x10
mov dword [ebp - 0x494], 0x30
mov dword [ebp - 0x490], 8
movd xmm0, eax
xor eax, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
addsd xmm0, xmm1
cvttsd2si esi, xmm0
test esi, esi
cmovs esi, eax
lea eax, [edx - 0x10]
movd xmm0, eax
xor eax, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
addsd xmm0, xmm1
cvttsd2si edi, xmm0
xorps xmm0, xmm0
test edi, edi
movlpd qword [ebp - 0x48c], xmm0
movlpd qword [ebp - 0x484], xmm0
cmovs edi, eax
movlpd qword [ebp - 0x47c], xmm0
lea eax, [ebp - 0x494]
movlpd qword [ebp - 0x474], xmm0
push eax
mov eax, dword [ebp - 0x3d4]
push 0
movlpd qword [ebp - 0x46c], xmm0
push dword [eax + 8]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
add esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add edx, edi
lea ecx, [esi + 0x10]
push ecx
lea eax, [edx + 0x10]
push eax
push esi
push edx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp - 0x47c]
mov dword [ebp - 0x440], 0
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
mov eax, dword [ebp - 0x3e4]
movzx ecx, al
mov eax, dword [ebp - 0x3c4]
sub eax, ecx
mov byte [ebp - 4], 0xc
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x42db70]
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x464]
addsd xmm0, qword [ebp - 0x38]
cvttsd2si eax, xmm1
cvttsd2si edx, xmm0
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x418]
movzx ecx, al
mov eax, dword [ebp - 0x3c4]
sub eax, ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x42db70]
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx ecx, al
shl ecx, 8
movzx eax, dl
or ecx, eax
mov eax, dword [ebp - 0x3b0]
shl ecx, 8
movzx eax, al
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0x444]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
push dword [ebp - 0x440]
mov edi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [ebp - 0x444]
call dword [sym.imp.mfc140u.dll_CGdiObject::DeleteObject]
mov eax, dword [ebp - 0x3e4]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
push 7
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 4
push eax
mov eax, dword [ebp - 0x30]
add eax, 5
push eax
push edi
test esi, esi
jne 0x402b45
call fcn.00404880
jmp 0x402b4a
mov eax, dword [ebp - 0x414]
and eax, 8
cmp dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3f8], eax
je 0x402944
push dword [ebp - 0x430]
mov edi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3f4]
mov edx, dword [ebp - 0x3d8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x3ec], eax
mov eax, dword [ebp - 0x3f8]
mov dword [ebp - 0x3cc], edx
test eax, eax
je 0x40288d
mov eax, dword [ebp - 0x3e4]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov edx, dword [ebp - 0x3cc]
mov ecx, dword [ebp - 0x3ec]
dec edx
mov eax, dword [ebp - 0x3f8]
dec ecx
mov dword [ebp - 0x3cc], edx
mov dword [ebp - 0x3ec], ecx
jmp 0x402893
mov ecx, dword [ebp - 0x3ec]
mov esi, dword [ebp - 0x3c0]
test esi, esi
je 0x402b24
cmp dword [ebp - 0x3d0], 0
je 0x402915
test eax, eax
jne 0x402915
mov edi, dword [ebp - 0x3cc]
lea eax, [edx + 1]
push 1
inc ecx
dec edi
push ecx
push eax
mov eax, dword [ebp - 0x3ac]
push dword [eax + 4]
push dword [ebp - 0x400]
push dword [esi + 4]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_Draw]
call esi
mov eax, dword [ebp - 0x3ec]
push 1
dec eax
push eax
mov eax, dword [ebp - 0x3c0]
push edi
mov edi, dword [ebp - 0x3ac]
push dword [edi + 4]
push dword [ebp - 0x3e0]
push dword [eax + 4]
call esi
movsd xmm1, qword [0x42db60]
mov edx, dword [ebp - 0x3b8]
mov eax, dword [ebp - 0x3b4]
jmp 0x4025f9
push 1
push ecx
push edx
push dword [edi + 4]
push dword [ebp - 0x3e0]
push dword [esi + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
movsd xmm1, qword [0x42db60]
mov edx, dword [ebp - 0x3b8]
mov eax, dword [ebp - 0x3b4]
jmp 0x4025f9
test eax, eax
je 0x402ab5
mov dword [ebp - 0x450], 0
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
mov eax, dword [ebp - 0x3e4]
movzx ecx, al
mov eax, dword [ebp - 0x3c4]
sub eax, ecx
mov byte [ebp - 4], 0xb
movsd xmm2, qword [0x42db70]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
cvttsd2si eax, xmm1
mulsd xmm0, xmm2
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x418]
movzx ecx, al
mov eax, dword [ebp - 0x3c4]
addsd xmm0, qword [ebp - 0x464]
sub eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
cvttsd2si edx, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx ecx, al
shl ecx, 8
movzx eax, dl
or ecx, eax
mov eax, dword [ebp - 0x3b0]
shl ecx, 8
movzx eax, al
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0x454]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
push dword [ebp - 0x450]
mov edi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [sym.imp.mfc140u.dll_CGdiObject::DeleteObject]
lea ecx, [ebp - 0x454]
call eax
mov eax, dword [ebp - 0x3e4]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov ecx, dword [ebp - 0x3f4]
mov edx, dword [ebp - 0x1c]
dec ecx
mov eax, dword [ebp - 0x20]
add edx, ecx
mov ecx, dword [ebp - 0x3d8]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x3c0]
test eax, eax
je 0x402a83
push 1
push edx
push ecx
push dword [edi + 4]
push dword [ebp - 0x3e0]
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x454]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00406680
movsd xmm1, qword [0x42db60]
mov edx, dword [ebp - 0x3b8]
mov eax, dword [ebp - 0x3b4]
jmp 0x4025f9
push dword [ebp - 0x40c]
mov edi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x3fc]
mov ecx, edi
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_CDC::Draw3dRect]
mov edx, dword [ebp - 0x3f4]
mov esi, dword [ebp - 0x3d8]
add edx, dword [ebp - 0x1c]
add esi, dword [ebp - 0x20]
cmp dword [ebp - 0x3c0], 0
je 0x402b24
cmp dword [ebp - 0x3d0], 0
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [edi + 4]
push 1
push edx
mov eax, dword [eax + 4]
push esi
push ecx
je 0x402b3d
push dword [ebp - 0x3b0]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
movsd xmm1, qword [0x42db60]
mov edx, dword [ebp - 0x3b8]
mov eax, dword [ebp - 0x3b4]
jmp 0x4025f9
push dword [ebp - 0x3e0]
jmp 0x402b1d
call fcn.00404770
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x444]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00406680
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3b8]
add eax, 8
add edx, eax
mov eax, dword [ebp - 0x3e8]
mov dword [ebp - 0x20], edx
cmp dword [eax - 0xc], 0
je 0x402e1e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
dec ecx
dec eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3bc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x3d0]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x3bc]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [ebp - 0x3d0]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 9
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov esi, eax
mov dword [ebp - 0x3c8], esi
cmp esi, 0xffffffff
je 0x402c79
lea ecx, [esi + 1]
push ecx
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
push eax
lea ecx, [ebp - 0x3d0]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
lea ecx, [ebp - 0x3b0]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
push 9
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
push eax
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
push eax
lea ecx, [ebp - 0x3bc]
mov byte [ebp - 4], 0x10
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
lea ecx, [ebp - 0x3b0]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0x3f0]
mov eax, dword [ecx + 0x30]
sub dword [ebp - 0x38], eax
jmp 0x402c8c
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x3bc]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_GetBkMode]
push 1
mov ecx, edi
mov dword [ebp - 0x3b0], eax
call dword [sym.imp.mfc140u.dll_CDC::SetBkMode]
mov eax, dword [ebp - 0x3d4]
test byte [eax + 0x10], 2
jne 0x402cc3
mov edx, dword [edi]
mov ecx, edi
push dword [ebp - 0x408]
call dword [edx + 0x38]
jmp 0x402dc1
call fcn.00401590
push 0x11
test eax, eax
jne 0x402dad
call dword [sym.imp.USER32.dll_GetSysColor]
cmp dword [ebp - 0x3dc], 0
mov ecx, eax
mov dword [ebp - 0x3cc], ecx
jne 0x402da3
movsd xmm2, qword [0x42db50]
movzx edx, cl
mov ecx, dword [ebp - 0x3c4]
sub ecx, edx
shr eax, 0x10
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x3cc]
movd xmm0, edx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
movzx ecx, ax
mov eax, dword [ebp - 0x3c4]
shr ecx, 8
sub eax, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
cvttsd2si edx, xmm1
movd xmm1, eax
mov eax, dword [ebp - 0x408]
cvtdq2pd xmm1, xmm1
movzx eax, al
sub dword [ebp - 0x3c4], eax
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvttsd2si ecx, xmm1
movd xmm1, dword [ebp - 0x3c4]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx eax, al
shl eax, 8
mov dword [ebp - 0x3cc], eax
movzx eax, cl
mov ecx, dword [ebp - 0x3cc]
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x38]
jmp 0x402dc1
mov esi, dword [edi]
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, edi
call dword [esi + 0x38]
mov esi, dword [ebp - 0x3c8]
mov eax, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x40]
mov edx, dword [edi]
push 0x24
push ecx
push dword [eax - 0xc]
mov ecx, edi
push eax
call dword [edx + 0x70]
cmp esi, 0xffffffff
je 0x402df4
mov eax, dword [ebp - 0x3d0]
lea ecx, [ebp - 0x40]
mov edx, dword [edi]
push 0x26
push ecx
push dword [eax - 0xc]
mov ecx, edi
push eax
call dword [edx + 0x70]
push dword [ebp - 0x3b0]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CDC::SetBkMode]
lea ecx, [ebp - 0x3d0]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x3bc]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov esi, dword [sym.imp.mfc140u.dll_CGdiObject::DeleteObject]
lea ecx, [ebp - 0x42c]
call esi
lea ecx, [ebp - 0x434]
call esi
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x42c]
mov dword [ebp - method.CPen.virtual_0], vtable.CPen.0
call fcn.00406680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00406680
lea ecx, [ebp - 0x43c]
call esi
lea ecx, [ebp - 0x410]
call esi
mov ecx, dword [ebp - 0x458]
test ecx, ecx
je 0x402e90
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x30]
lea ecx, [ebp - 0x44c]
call esi
mov ecx, dword [ebp - 0x45c]
test ecx, ecx
je 0x402ea9
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x43c]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00406680
lea ecx, [ebp - 0x410]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00406680
lea ecx, [ebp - 0x44c]
mov dword [ebp - method.CFont.virtual_0], vtable.CFont.0
call fcn.00406680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 4