Function at 0x40ada0
Capabilities:
Check os version

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x54
xor eax, eax
lea edi, [esp + 0x68]
mov dword [esp + 0x64], 0x154
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push ebx
push eax
push 0x154
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x40af72
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x40ae07
lea ecx, [esp + 0x28]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x104]
cmp edx, eax
jne 0x40aef9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x108]
cmp eax, ecx
jne 0x40aef9
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10c]
cmp ecx, eax
jne 0x40aef9
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x110]
cmp edx, eax
jne 0x40aef9
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x114]
cmp eax, ecx
jne 0x40aef9
mov cl, byte [esp + 0x3c]
mov al, byte [esp + 0x118]
cmp cl, al
jne 0x40aef9
mov dl, byte [esp + 0x3d]
mov al, byte [esp + 0x119]
cmp dl, al
jne 0x40aef9
mov al, byte [esp + 0x3e]
mov cl, byte [esp + 0x11a]
cmp al, cl
jne 0x40aef9
mov cl, byte [esp + 0x3f]
mov al, byte [esp + 0x11b]
cmp cl, al
jne 0x40aef9
mov dl, byte [esp + 0x40]
mov al, byte [esp + 0x11c]
cmp dl, al
jne 0x40aef9
mov al, byte [esp + 0x41]
mov cl, byte [esp + 0x11d]
cmp al, cl
jne 0x40aef9
mov cl, byte [esp + 0x42]
mov al, byte [esp + 0x11e]
cmp cl, al
jne 0x40aef9
mov dl, byte [esp + 0x43]
mov al, byte [esp + 0x11f]
cmp dl, al
jne 0x40aef9
lea eax, [esp + 0x120]
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40af72
lea edx, [esp + 0x104]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, eax
cmp edi, ebx
je 0x40af72
mov eax, dword [esi + 0xa0]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, ebx
je 0x40af2a
push eax
call ebp
test eax, eax
je 0x40af2a
mov dword [esi + 0xa0], ebx
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x40af3b
cmp eax, edi
je 0x40af3b
push eax
call ebp
mov ecx, edi
mov dword [esi + 0xa0], edi
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push ecx
push 0x30
push edx
call edi
mov eax, dword [esi + 4]
push 0x4662a4
push ebx
push 0x41c
push eax
call edi
mov ecx, dword [esi + 4]
push ebx
push ebx
push 0x421
push ecx
call edi
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebp, eax
mov eax, dword [esi + 0xa0]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
lea edx, [esp + 0x14]
push 0x424
push edx
push 0xffffffffffffffff
push 0x4662a0
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
cmp eax, 4
jge 0x40affe
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea edx, [esp + 0x14]
push 0x424
push edx
push 0xffffffffffffffff
push 0x46629c
push ebp
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov dword [esi + 0xac], eax
jmp 0x40b004
mov dword [esi + 0xac], ebx
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1bc]
lea edx, [esp + 0x1b8]
mov dword [esp + 0x1b8], 0x94
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1bc]
cmp eax, 5
jb 0x40b124
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x100a
mov dword [esp + 0x20], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x40b074
cmp dword [esp + 0x10], ebx
jne 0x40b074
mov ecx, 1
jmp 0x40b076
xor ecx, ecx
mov dl, byte [esi + 0x81]
and cl, 1
or cl, 4
and dl, 0xfd
shl cl, 1
or cl, dl
mov al, cl
and cl, 0xfb
not al
and al, 2
shl al, 1
or al, cl
mov byte [esi + 0x81], al
not al
and eax, 4
shl eax, 0x12
push eax
mov eax, dword [esi + 4]
push 0x100000
push 0x446
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 4]
push 1
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x1bc]
cmp eax, 5
jne 0x40b0e8
cmp dword [esp + 0x1c0], 1
jae 0x40b0ea
jmp 0x40b124
jbe 0x40b124
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x1022
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x40b10f
cmp dword [esp + 0x10], ebx
je 0x40b10f
mov ebx, 1
mov al, byte [esi + 0x81]
mov cl, al
xor cl, bl
and cl, 1
xor cl, al
mov byte [esi + 0x81], cl
mov edx, dword [esp + 0x24]
push ebp
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret