Function at 0x403050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4241f0
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x380], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x390], edi
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x37c], eax
call fcn.00401590
test eax, eax
je 0x4030ab
mov eax, 1
jmp 0x4030b7
xor eax, eax
cmp dword [0x435e34], 1
sete al
test eax, eax
mov ebx, 7
mov ecx, 4
cmove ebx, ecx
test dword [ebp - 0x37c], 0x800
je 0x4030fc
push 0xf
mov dword [edi + 0xc], 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, dword [esi + 0x34]
add eax, ebx
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
cmovle ecx, eax
mov dword [edi + 0x10], ecx
jmp 0x4032e3
mov dword [ebp - 0x384], 0
mov dword [ebp - method.CFont.virtual_0], vtable.CFont.0
lea eax, [ebp - 0x180]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x378], 0x1f8
mov dword [ebp - 0x180], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x378]
mov ecx, 0x1f4
cmp dword [ebp - 0x17c], 6
push 0
cmovb eax, ecx
lea ecx, [ebp - 0x378]
push ecx
push eax
push 0x29
mov dword [ebp - 0x378], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x6c]
mov ecx, 0x17
lea esi, [ebp - 0x298]
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [ebp - 0x388]
call dword [sym.imp.mfc140u.dll_CGdiObject::Attach]
call dword [sym.imp.mfc140u.dll_AfxGetThread]
test eax, eax
je 0x4031a7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov dword [ebp - 0x37c], eax
test eax, eax
jne 0x4031ba
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.mfc140u.dll_CWnd::FromHandle]
mov dword [ebp - 0x37c], eax
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.mfc140u.dll_CDC::FromHandle]
mov esi, eax
mov dword [ebp - 0x38c], 0
mov eax, dword [0x435e68]
cmp eax, 2
jl 0x4031f9
mov edx, dword [esi]
lea eax, [ebp - 0x388]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [ebp - 0x38c], eax
mov eax, dword [0x435e68]
mov ecx, dword [ebp - 0x390]
xor edi, edi
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x394], ecx
mov dword [ebp - 0x398], edi
test eax, eax
je 0x40324c
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403220
sub ecx, edi
lea eax, [ebp - 0x398]
push eax
sar ecx, 1
push ecx
push edx
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edi, dword [ebp - 0x398]
mov eax, dword [0x435e68]
cmp eax, 2
jl 0x40325e
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x38c]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x37c]
push dword [esi + 4]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
call fcn.00401590
test eax, eax
jne 0x403282
cmp dword [0x435e34], 1
jne 0x403292
mov esi, dword [ebp - 0x380]
mov eax, dword [esi + 0x30]
add eax, 8
add eax, ebx
jmp 0x4032a2
mov esi, dword [ebp - 0x380]
mov eax, dword [esi + 0x30]
lea eax, [eax*2 + 1]
add eax, edi
mov edi, dword [ebp - 0x390]
push 0xf
mov dword [edi + 0xc], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esi + 0x34]
add ecx, ebx
cmp eax, ecx
cmovg ecx, eax
mov dword [edi + 0x10], ecx
lea ecx, [ebp - 0x388]
call dword [sym.imp.mfc140u.dll_CGdiObject::DeleteObject]
lea ecx, [ebp - 0x388]
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 4