Function at 0x40fd14
Capabilities:
Check os version

Disassembly:
push 0x178
mov eax, 0x45b3f3
call fcn.00448636
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.004126ba
push ebx
lea ecx, [esi + 0xe4]
mov dword [ebp - 4], ebx
call fcn.004126ba
push ebx
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 1
call fcn.004126ba
push ebx
lea ecx, [esi + 0xfc]
mov byte [ebp - 4], 2
call fcn.004126ba
push ebx
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 3
call fcn.004126ba
push ebx
lea ecx, [esi + 0x114]
mov byte [ebp - 4], 4
call fcn.004126ba
push ebx
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 5
call fcn.004126ba
push ebx
lea ecx, [esi + 0x12c]
mov byte [ebp - 4], 6
call fcn.004126ba
push 0x53
pop edi
push edi
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 7
call fcn.00412b98
push edi
lea ecx, [esi + 0x144]
mov byte [ebp - 4], 8
call fcn.00412b98
mov byte [ebp - 4], 9
push edi
lea ecx, [esi + 0x150]
call fcn.00412b98
lea ecx, [esi + 0x178]
mov byte [ebp - 4], 0xa
mov dword [esi + 0x15c], ebx
call fcn.004128a1
push ebx
lea ecx, [esi + 0x240]
mov byte [ebp - 4], 0xb
call fcn.004126ba
push edi
lea ecx, [esi + 0x24c]
mov byte [ebp - 4], 0xc
call fcn.00412b98
push edi
lea ecx, [esi + 0x258]
mov byte [ebp - 4], 0xd
call fcn.00412b98
lea ecx, [esi + 0x270]
mov byte [ebp - 4], 0xe
call fcn.004128a1
lea edi, [esi + 0x304]
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.004128a1
push ebx
lea ecx, [esi + 0x388]
mov byte [ebp - 4], 0x10
call fcn.004126ba
push 0x110
lea eax, [ebp - 0x17c]
push ebx
push eax
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x180], 0x114
call fcn.0044a2c0
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 0x40ff05
push 0x45f664
jmp 0x40ff0a
push 0x45f658
call fcn.00412a42
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.0044a2c0
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.00412a16
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0044a368
pop ecx
pop ecx
mov edi, 0x4777b0
mov ecx, edi
mov byte [ebp - 0x55], 1
call fcn.004128d7
test eax, eax
jle 0x40ffa5
mov ecx, edi
call fcn.00412a16
push eax
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.0044a6b4
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.00412a42
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.0044a2c0
add esp, 0xc
cmp dword [0x477790], ebx
jne 0x410037
push 0xdc
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [0x477790], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x45f640
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.0044a2c0
push 0x10
lea eax, [esi + 0xa8]
push ebx
push eax
call fcn.0044a2c0
or dword [esi + 0x6c], 0xffffffff
or dword [esi + 0x68], 0xffffffff
push 0x34
mov byte [esi + 0xc7], bl
call fcn.00446d62
add esp, 0x1c
cmp eax, ebx
je 0x4100aa
mov ecx, eax
call fcn.0040fac8
jmp 0x4100ac
xor eax, eax
push 0x46b4ac
lea ecx, [esi + 0x270]
mov dword [esi + 0x268], eax
mov byte [esi + 0x264], 1
mov byte [esi + 0x26c], bl
call fcn.00412a42
mov eax, esi
call fcn.00448680
ret