Function at 0x40c220
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x43a82b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d8
push ebx
push ebp
push esi
push edi
push 0x90
lea eax, [esp + 0x70]
mov dword [esp + 0x6c], 0x94
push 0
push eax
mov edi, ecx
mov esi, 0x158
call fcn.00423310
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x40c278
cmp dword [esp + 0x6c], 6
jae 0x40c27d
mov esi, 0x154
push 0x154
lea eax, [esp + 0x104]
mov dword [esp + 0x100], esi
push 0
push eax
call fcn.00423310
mov ebp, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [esp + 0x108]
add esp, 0xc
push 0
push eax
push 0x158
push 0x29
call ebp
test eax, eax
je 0x40c43c
push 0x38
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0
push 0
push eax
call fcn.00423310
mov eax, dword [edi + 0xa4]
add esp, 0xc
test eax, eax
je 0x40c2ed
lea ecx, [esp + 0x2c]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x19c]
jne 0x40c3bd
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x1a0]
jne 0x40c3bd
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x1a4]
jne 0x40c3bd
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x1a8]
jne 0x40c3bd
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x1ac]
jne 0x40c3bd
mov al, byte [esp + 0x40]
cmp al, byte [esp + 0x1b0]
jne 0x40c3bd
mov al, byte [esp + 0x41]
cmp al, byte [esp + 0x1b1]
jne 0x40c3bd
mov al, byte [esp + 0x42]
cmp al, byte [esp + 0x1b2]
jne 0x40c3bd
mov al, byte [esp + 0x43]
cmp al, byte [esp + 0x1b3]
jne 0x40c3bd
mov al, byte [esp + 0x44]
cmp al, byte [esp + 0x1b4]
jne 0x40c3bd
mov al, byte [esp + 0x45]
cmp al, byte [esp + 0x1b5]
jne 0x40c3bd
mov al, byte [esp + 0x46]
cmp al, byte [esp + 0x1b6]
jne 0x40c3bd
mov al, byte [esp + 0x47]
cmp al, byte [esp + 0x1b7]
jne 0x40c3bd
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x40c43c
lea eax, [esp + 0x19c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, eax
test esi, esi
je 0x40c43c
cmp dword [edi + 0xa4], 0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x40c3f6
push dword [edi + 0xa4]
call ebx
test eax, eax
je 0x40c3f6
mov dword [edi + 0xa4], 0
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x40c407
cmp eax, esi
je 0x40c407
push eax
call ebx
push 1
push esi
mov dword [edi + 0xa4], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x30
push dword [edi + 4]
call esi
push 0x43c550
push 0
push 0x41c
push dword [edi + 4]
call esi
push 0
push 0
push 0x421
push dword [edi + 4]
call esi
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
mov dword [esp + 0x24], esi
push dword [edi + 0xa4]
mov dword [esp + 0x2f4], 0
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.USER32.dll_DrawTextA]
xorps xmm0, xmm0
push 0x424
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 0x43c554
push esi
movdqu xmmword [esp + 0x28], xmm0
call ebx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
cmp eax, 4
jge 0x40c4cb
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 0x43c558
push esi
call ebx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov dword [edi + 0xb0], eax
jmp 0x40c4d5
mov dword [edi + 0xb0], 0
push dword [esp + 0x10]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x90
lea eax, [esp + 0x25c]
mov dword [esp + 0x258], 0x94
push 0
push eax
call fcn.00423310
mov ebx, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea eax, [esp + 0x260]
add esp, 0xc
push eax
call ebx
mov eax, dword [esp + 0x258]
cmp eax, 5
jb 0x40c5c8
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push 0x100a
call ebp
test eax, eax
je 0x40c549
cmp dword [esp + 0x10], 0
jne 0x40c549
mov cl, 1
jmp 0x40c54b
xor cl, cl
mov al, byte [edi + 0x85]
and cl, 1
or cl, 4
and al, 0xfd
add cl, cl
or cl, al
mov byte [edi + 0x85], cl
shr cl, 1
not cl
and cl, 1
movzx eax, cl
mov ecx, edi
push eax
call fcn.004193c0
mov eax, dword [esp + 0x258]
cmp eax, 5
jne 0x40c58d
cmp dword [esp + 0x25c], 1
jae 0x40c58f
jmp 0x40c5c8
jbe 0x40c5c8
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0x1022
call ebp
test eax, eax
je 0x40c5b6
cmp dword [esp + 0x10], 0
je 0x40c5b6
mov cl, 1
jmp 0x40c5b8
xor cl, cl
mov al, byte [edi + 0x85]
xor al, cl
and al, 1
xor byte [edi + 0x85], al
test byte [edi + 0x58], 0x10
jne 0x40c609
push 0x90
lea eax, [esp + 0x70]
mov dword [esp + 0x6c], 0x94
push 0
push eax
call fcn.00423310
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call ebx
test eax, eax
je 0x40c609
cmp dword [esp + 0x6c], 6
jb 0x40c609
call fcn.0040d6f0
test al, al
je 0x40c609
mov bl, 1
jmp 0x40c627
xor bl, bl
test byte [edi + 0x86], 1
je 0x40c627
cmp dword [edi + 0x44], 0
je 0x40c627
cmp dword [edi + 0x50], 0
jle 0x40c627
mov ecx, edi
call fcn.0041ba10
mov al, byte [edi + 0x86]
xor al, bl
push esi
push dword [esp + 0x2c]
and al, 1
xor byte [edi + 0x86], al
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x2e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2e4
ret