Function at 0x409460
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x448090]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov edi, ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push esi
divss xmm0, dword [0x441528]
push dword [edi + 4]
movss dword [0x449414], xmm0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x28]
push 0x5c
push 0
push eax
call fcn.00421940
add esp, 0xc
mov dword [esp + 0x28], 0xffffffeb
mov dword [esp + 0x38], 0x1f4
mov byte [esp + 0x3f], 1
mov byte [esp + 0x42], 5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov edx, str.Tahoma
mov ecx, str.Segoe_UI
cmovbe ecx, edx
push ecx
lea eax, [esp + 0x48]
push 0x20
push eax
call fcn.00420d76
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call esi
mov dword [edi + 0x14], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x3c], 0x2bc
call esi
mov dword [edi + 0x18], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0xfffffff3
mov dword [esp + 0x3c], 0x2bc
call esi
mov dword [edi + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x3c], 0x1f4
call esi
mov dword [edi + 0x20], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0xfffffff0
call esi
mov dword [edi + 0x1c], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0xfffffff4
call esi
mov dword [edi + 0x24], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0xfffffff6
mov dword [esp + 0x3c], 0x1f4
call esi
cmp byte [edi + 0x44], 0
mov dword [edi + 0x2c], eax
mov ecx, edi
je 0x40959f
call fcn.00409a90
jmp 0x4095a4
call fcn.004097f0
mov eax, dword [edi + 0x34]
test eax, eax
je 0x4095f6
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov dword [edi + 0x38], eax
lea eax, [esp + 0x10]
push eax
push 0x18
push dword [edi + 0x34]
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x8c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 6
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x419
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
sub esp, 8
lea ebx, [edi + 0x48]
push 0x89
lea ecx, [ebx + 0xc]
mov esi, eax
call fcn.004158a0
test al, al
je 0x4096c0
push 0x415a00
push 0xfffffffffffffffc
push esi
mov dword [ebx], esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebx
push str.pThis
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.USER32.dll_SetPropW]
test eax, eax
je 0x4096c0
mov ebx, dword [edi + 0x58]
lea eax, [esp + 0xc]
push eax
push dword [ebx + 4]
mov dword [esp + 0x14], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x409665
mov dword [ebx + 8], eax
movd xmm0, dword [esp + 0xc]
mov edi, dword [edi + 0x58]
cvtdq2ps xmm0, xmm0
lea eax, [esp + 0xc]
mulss xmm0, dword [0x449414]
push eax
push dword [edi + 4]
cvttss2si ebx, xmm0
mov dword [esp + 0x14], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x40969a
mov dword [edi + 8], eax
movd xmm0, dword [esp + 0xc]
cvtdq2ps xmm0, xmm0
push 6
mulss xmm0, dword [0x449414]
cvttss2si eax, xmm0
push eax
push ebx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041fe49
mov esp, ebp
pop ebp
ret 8