Function at 0x483320
Capabilities:
Check os version

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x35c
mov esi, eax
mov dword [esp], 5
call sub.USER32.dll_GetSystemMetrics
push ebp
mov dword [0x68b610], eax
mov dword [esp], 6
call sub.USER32.dll_GetSystemMetrics
push edx
cmp eax, dword [0x68b610]
jg 0x483690
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.DISPLAY
call sub.GDI32.dll_CreateDCA
sub esp, 0x10
mov ebx, eax
test esi, esi
je 0x483678
mov dword [esp], 0x68b620
mov eax, dword [0x68bb7c]
call dword [eax + 0x1f0]
mov dword [esp + 0x1f8], 0x158
mov dword [esp + 0x90], 0x94
lea eax, [esp + 0x90]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
push esi
mov eax, dword [esp + 0x1f8]
cmp dword [esp + 0x94], 5
ja 0x4833db
sub eax, 4
mov dword [esp + 0x1f8], eax
mov dword [esp + 0xc], 0
lea edx, [esp + 0x1f8]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x29
call sub.USER32.dll_SystemParametersInfoA
sub esp, 0x10
lea eax, [esp + 0x298]
mov dword [esp], eax
call sub.GDI32.dll_CreateFontIndirectA
push esi
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_SelectObject
sub esp, 8
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_GetTextMetricsA
sub esp, 8
lea ebp, [esp + 0x38]
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call sub.GDI32.dll_GetTextFaceA
sub esp, 0xc
mov dword [esp + 4], 0x5a
mov dword [esp], ebx
call sub.GDI32.dll_GetDeviceCaps
sub esp, 8
mov dword [esp + 8], eax
mov dword [esp + 4], 0x48
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x64]
mov dword [esp], edx
call sub.KERNEL32.dll_MulDiv
sub esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
xor eax, eax
cmp byte [esp + 0x88], 0
setne al
mov dword [esp + 0x1c], eax
mov dword [esp], 0xd
call sub.GDI32.dll_GetStockObject
push edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_SelectObject
sub esp, 8
mov dword [esp], ebx
call sub.GDI32.dll_DeleteDC
push ecx
mov dword [esp], edi
call sub.GDI32.dll_DeleteObject
push ebx
mov dword [esp + 4], ebp
mov dword [esp], 0x68b620
mov eax, dword [0x68bb7c]
call dword [eax + 0x1e0]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x611948
lea ebx, [esp + 0x20]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], ebx
mov dword [esp], 0x68b620
mov eax, dword [0x68bb7c]
call dword [eax + 0x1e0]
cmp dword [esp + 0x18], 0x2bb
jg 0x48363c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4835b8
call fcn.00433f18
test eax, eax
jle 0x48361b
mov dword [esp], 0x48
call sub.USER32.dll_GetSystemMetrics
push ebx
mov dword [0x68b604], eax
mov dword [esp], 7
call sub.USER32.dll_GetSystemMetrics
push esi
mov ebx, eax
mov dword [esp], 5
call sub.USER32.dll_GetSystemMetrics
push edi
add ebx, eax
mov dword [esp], 0x47
call sub.USER32.dll_GetSystemMetrics
push ebp
mov esi, eax
mov dword [esp], 7
call sub.USER32.dll_GetSystemMetrics
push edx
lea edx, [ebx + esi + 7]
and edx, 0xfff8
sub edx, eax
mov dword [0x68b608], edx
mov dword [0x68b60c], 1
call fcn.00433f18
cmp eax, 2
je 0x4836a8
add esp, 0x35c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esp + 0x124]
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1f0]
mov dword [esp + 4], str.italic
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1e0]
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
mov dword [esp], 0x68b620
mov eax, dword [0x68bb7c]
call dword [eax + 0x1e0]
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1e8]
call fcn.00433f18
test eax, eax
jg 0x483536
call sub.USER32.dll_GetMenuCheckMarkDimensions
mov edx, eax
shr edx, 0x10
mov dword [0x68b604], edx
and eax, 0xffff
mov dword [0x68b608], eax
jmp 0x483594
lea ebx, [esp + 0x124]
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1f0]
mov dword [esp + 4], str.bold
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1e0]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4835e3
jmp 0x4835cd
mov dword [esp], 0x68b620
mov eax, dword [0x68bb7c]
call dword [eax + 0x1e8]
jmp 0x483388
mov dword [esp], 6
call sub.USER32.dll_GetSystemMetrics
push edi
mov dword [0x68b610], eax
jmp 0x483357
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x68b60c
mov dword [esp + 4], 0
mov dword [esp], 0x100a
call sub.USER32.dll_SystemParametersInfoA
sub esp, 0x10
add esp, 0x35c
pop ebx
pop esi
pop edi
pop ebp
ret