Function at 0x40f13e
Capabilities:
Check os version

Disassembly:
push 0x178
mov eax, 0x45b985
call fcn.00447c65
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [esi + 0xd8]
mov dword [ebp - 0x184], esi
mov dword [esi], ebx
mov dword [esi + 4], 0xff
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x50], bl
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xb8], 0x1000
mov byte [esi + 0xbc], 1
mov byte [esi + 0xbd], bl
mov byte [esi + 0xbe], bl
mov byte [esi + 0xbf], 1
mov byte [esi + 0xc0], bl
mov byte [esi + 0xc2], bl
mov byte [esi + 0xc3], bl
mov byte [esi + 0xc4], bl
mov byte [esi + 0xc6], 1
call fcn.00411ae4
push ebx
lea ecx, [esi + 0xe4]
mov dword [ebp - 4], ebx
call fcn.00411ae4
push ebx
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 1
call fcn.00411ae4
push ebx
lea ecx, [esi + 0xfc]
mov byte [ebp - 4], 2
call fcn.00411ae4
push ebx
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 3
call fcn.00411ae4
push ebx
lea ecx, [esi + 0x114]
mov byte [ebp - 4], 4
call fcn.00411ae4
push ebx
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 5
call fcn.00411ae4
push ebx
lea ecx, [esi + 0x12c]
mov byte [ebp - 4], 6
call fcn.00411ae4
push 0x53
pop edi
push edi
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 7
call fcn.00411fc2
push edi
lea ecx, [esi + 0x144]
mov byte [ebp - 4], 8
call fcn.00411fc2
mov byte [ebp - 4], 9
push edi
lea ecx, [esi + 0x150]
call fcn.00411fc2
lea ecx, [esi + 0x178]
mov byte [ebp - 4], 0xa
mov dword [esi + 0x15c], ebx
call fcn.00411cce
push ebx
lea ecx, [esi + 0x240]
mov byte [ebp - 4], 0xb
call fcn.00411ae4
push edi
lea ecx, [esi + 0x24c]
mov byte [ebp - 4], 0xc
call fcn.00411fc2
push edi
lea ecx, [esi + 0x258]
mov byte [ebp - 4], 0xd
call fcn.00411fc2
lea ecx, [esi + 0x270]
mov byte [ebp - 4], 0xe
call fcn.00411cce
lea edi, [esi + 0x304]
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.00411cce
push ebx
lea ecx, [esi + 0x388]
mov byte [ebp - 4], 0x10
call fcn.00411ae4
push 0x110
lea eax, [ebp - 0x17c]
push ebx
push eax
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x180], 0x114
call fcn.00447cc0
add esp, 0xc
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x17c], 6
mov ecx, edi
jae 0x40f32f
push 0x460674
jmp 0x40f334
push 0x460668
call fcn.00411e6c
push 0x58
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [esi + 0x160], 0xffa7a6aa
mov dword [esi + 0x164], 0xff000000
mov dword [esi + 0x168], 0xff0000ff
mov dword [esi + 0x16c], 0xffd3215f
mov dword [esi + 0x170], 0xffbae4ff
mov dword [ebp - 0x6c], ebx
call fcn.00447cc0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, edi
call fcn.00411ca6
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00447d68
pop ecx
pop ecx
mov edi, 0x4785a0
mov ecx, edi
mov byte [ebp - 0x55], 1
call fcn.00411d04
test eax, eax
jle 0x40f3cf
mov ecx, edi
call fcn.00411ca6
push eax
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.004480b4
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esi + 0x174], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x178]
call fcn.00411e6c
mov eax, dword [ebp - 0x6c]
neg eax
cmp dword [ebp - 0x5c], 0x2bc
mov dword [esi + 0x1fc], eax
setge al
cmp byte [ebp - 0x57], 1
mov byte [esi + 0x200], al
sete al
cmp byte [ebp - 0x58], 1
mov byte [esi + 0x201], al
sete al
push 0x3c
mov byte [esi + 0x202], al
lea eax, [esi + 0x204]
push ebx
push eax
call fcn.00447cc0
add esp, 0xc
cmp dword [0x478580], ebx
jne 0x40f461
push 0xdc
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [0x478580], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x460650
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x10
lea eax, [esi + 0x88]
push ebx
push eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x98], ebx
call fcn.00447cc0
push 0x10
lea eax, [esi + 0xa8]
push ebx
push eax
call fcn.00447cc0
or dword [esi + 0x6c], 0xffffffff
or dword [esi + 0x68], 0xffffffff
push 0x34
mov byte [esi + 0xc7], bl
call fcn.004464cb
add esp, 0x1c
cmp eax, ebx
je 0x40f4d4
mov ecx, eax
call fcn.0040eef2
jmp 0x40f4d6
xor eax, eax
push 0x46c4d4
lea ecx, [esi + 0x270]
mov dword [esi + 0x268], eax
mov byte [esi + 0x264], 1
mov byte [esi + 0x26c], bl
call fcn.00411e6c
mov eax, esi
call fcn.00447caf
ret