Function at 0x40ce1c
Capabilities:
Check os version

Disassembly:
push 0x178
mov eax, 0x45955b
call fcn.00445ac6
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.0040f60f
push ebx
lea ecx, [esi + 0xe4]
mov dword [ebp - 4], ebx
call fcn.0040f60f
push ebx
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 1
call fcn.0040f60f
push ebx
lea ecx, [esi + 0xfc]
mov byte [ebp - 4], 2
call fcn.0040f60f
push ebx
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 3
call fcn.0040f60f
push ebx
lea ecx, [esi + 0x114]
mov byte [ebp - 4], 4
call fcn.0040f60f
push ebx
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 5
call fcn.0040f60f
push ebx
lea ecx, [esi + 0x12c]
mov byte [ebp - 4], 6
call fcn.0040f60f
push 0x53
pop edi
push edi
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 7
call fcn.0040faf1
push edi
lea ecx, [esi + 0x144]
mov byte [ebp - 4], 8
call fcn.0040faf1
mov byte [ebp - 4], 9
push edi
lea ecx, [esi + 0x150]
call fcn.0040faf1
lea ecx, [esi + 0x178]
mov byte [ebp - 4], 0xa
mov dword [esi + 0x15c], ebx
call fcn.0040f7fd
push ebx
lea ecx, [esi + 0x240]
mov byte [ebp - 4], 0xb
call fcn.0040f60f
push edi
lea ecx, [esi + 0x24c]
mov byte [ebp - 4], 0xc
call fcn.0040faf1
push edi
lea ecx, [esi + 0x258]
mov byte [ebp - 4], 0xd
call fcn.0040faf1
lea ecx, [esi + 0x270]
mov byte [ebp - 4], 0xe
call fcn.0040f7fd
lea edi, [esi + 0x304]
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.0040f7fd
push ebx
lea ecx, [esi + 0x388]
mov byte [ebp - 4], 0x10
call fcn.0040f60f
push 0x110
lea eax, [ebp - 0x17c]
push ebx
push eax
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x180], 0x114
call fcn.00445b20
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 0x40d00d
push 0x45d634
jmp 0x40d012
push 0x45d628
call fcn.0040f99b
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.00445b20
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.0040f7d5
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00445bc8
pop ecx
pop ecx
mov edi, 0x475640
mov ecx, edi
mov byte [ebp - 0x55], 1
call fcn.0040f833
test eax, eax
jle 0x40d0ad
mov ecx, edi
call fcn.0040f7d5
push eax
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00445f14
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.0040f99b
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.00445b20
add esp, 0xc
cmp dword [0x475620], ebx
jne 0x40d13f
push 0xdc
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [0x475620], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push str.msimg32.dll
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.00445b20
push 0x10
lea eax, [esi + 0xa8]
push ebx
push eax
call fcn.00445b20
or dword [esi + 0x6c], 0xffffffff
or dword [esi + 0x68], 0xffffffff
push 0x34
mov byte [esi + 0xc7], bl
call fcn.00443ca7
add esp, 0x1c
cmp eax, ebx
je 0x40d1b2
mov ecx, eax
call fcn.00409e70
jmp 0x40d1b4
xor eax, eax
push 0x4694dc
lea ecx, [esi + 0x270]
mov dword [esi + 0x268], eax
mov byte [esi + 0x264], 1
mov byte [esi + 0x26c], bl
call fcn.0040f99b
mov eax, esi
call fcn.00445b10
ret