Function at 0x401e7d
Capabilities:
Check os version

Disassembly:
sub esp, 0x24
push ebx
push esi
push 0x406010
mov dword [0x4486cc], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x64
push dword [0x4386b4]
mov dword [0x4386b0], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
xor ebx, ebx
push ebx
push 0x80
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x25
push 0xb9
push 0x7da
push edi
mov esi, 0x4486e8
call fcn.004014de
push dword [0x4486c8]
push edi
call fcn.00401400
mov eax, dword [0x4486c8]
add eax, 0x80
cmp byte [eax], bl
je 0x401f04
push eax
push 0x7d4
push edi
call fcn.0040141a
jmp 0x401f0f
push 0x7d1
push edi
call fcn.00401438
mov eax, dword [0x4486c8]
add eax, 0x100
cmp byte [eax], bl
jne 0x401f2a
push 0x7d3
push edi
call fcn.00401438
jmp 0x401f66
push eax
mov esi, 0x7d6
push esi
push edi
call fcn.0040141a
mov eax, dword [0x4486c8]
cmp byte [eax + 0x180], bl
jne 0x401f4c
cmp byte [eax + 0x200], bl
je 0x401f66
push esi
mov esi, 0x448730
push edi
mov ecx, esi
call fcn.004048ca
push 0x401cdd
mov ecx, esi
call fcn.004048f7
mov eax, dword [0x4486c8]
add eax, 0x1280
push eax
push 0x7d8
push edi
call fcn.0040141a
push 0x1000
push 0x7d5
mov esi, 0x4486d8
push edi
mov ecx, esi
call fcn.00404c6d
mov eax, dword [0x4486c8]
add eax, 0x280
push eax
mov ecx, esi
call fcn.0040490f
mov eax, dword [0x4486c8]
cmp byte [eax + 0x180], bl
mov dword [0x4386ac], ebx
je 0x402005
cmp byte [eax + 0x200], bl
je 0x402005
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x4486c8]
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
add ecx, 0x180
push ecx
push 0x384
push ebx
push eax
mov dword [0x4386ac], eax
call esi
mov eax, dword [0x4486c8]
add eax, 0x200
push eax
push 0x385
push ebx
push dword [0x4386ac]
call esi
mov eax, dword [0x4486c8]
mov cl, byte [eax + 0xbeac]
cmp cl, bl
je 0x4020ba
cmp cl, 1
jne 0x40209d
lea ecx, [esp + 0xc]
call fcn.004049c0
push 0x800
mov esi, 0x4386b8
push esi
call fcn.00404c3a
push ebx
push 0x40000000
push esi
lea ecx, [esp + 0x18]
call fcn.00404ace
mov eax, dword [0x4486c8]
push ebx
push dword [eax + 0xbeb0]
add eax, 0xbebc
push eax
lea ecx, [esp + 0x18]
call fcn.00404a98
lea ecx, [esp + 0xc]
call fcn.00404c02
push edi
mov eax, esi
call fcn.004015f1
push esi
mov dword [0x4486d0], eax
call sub.msvcrt.dll_strlen
inc eax
push eax
call sub.msvcrt.dll_malloc
push esi
push eax
mov dword [0x4486d4], eax
call sub.msvcrt.dll_strcpy
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00404d48
jmp 0x4020b5
cmp cl, 2
jne 0x4020ba
push 1
push dword [eax + 0xbeb0]
add eax, 0xbebc
push eax
call fcn.00403002
mov eax, dword [0x4486c8]
mov eax, dword [eax + 0x16a0]
cmp eax, ebx
je 0x4021a1
dec eax
je 0x402110
dec eax
je 0x402109
dec eax
je 0x402102
dec eax
je 0x4020fb
dec eax
je 0x4020f4
dec eax
jne 0x4021a1
push 0x40008
push 0x12c
push edi
call dword [sym.imp.USER32.dll_AnimateWindow]
jmp 0x4021a1
push 0x40004
jmp 0x4020e3
push 0x40001
jmp 0x4020e3
push 0x40005
jmp 0x4020e3
push 0x40010
jmp 0x4020e3
cmp dword [0x406014], 5
jb 0x4021a1
push ebp
push 0x401344
push 0x401338
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push edi
mov dword [esp + 0x14], eax
call ebp
or eax, 0x80000
push eax
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
push 2
push 0x64
pop ecx
mov eax, esi
cdq
idiv ecx
push eax
push ebx
push edi
call dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x4fb
cmp esi, 0x6897
jne 0x40215e
push 0xffffffffffffffec
push edi
call ebp
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop ebp
pop esi
pop ebx
add esp, 0x24
ret