Function at 0x4166e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x426dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x434020]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434020]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
push 0x1f0
xor ebx, ebx
lea eax, [esp + 0xa4]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0xa8], 0x1f4
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0xa0]
push ecx
push 0x1f4
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp eax, ebx
je 0x4168d7
push 0x58
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x48], ebx
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, ebx
je 0x41678a
lea ecx, [esp + 0x3c]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x17c]
jne 0x41685a
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x180]
jne 0x41685a
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x184]
jne 0x41685a
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x188]
jne 0x41685a
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x18c]
jne 0x41685a
mov cl, byte [esp + 0x50]
cmp cl, byte [esp + 0x190]
jne 0x41685a
mov dl, byte [esp + 0x51]
cmp dl, byte [esp + 0x191]
jne 0x41685a
mov al, byte [esp + 0x52]
cmp al, byte [esp + 0x192]
jne 0x41685a
mov cl, byte [esp + 0x53]
cmp cl, byte [esp + 0x193]
jne 0x41685a
mov dl, byte [esp + 0x54]
cmp dl, byte [esp + 0x194]
jne 0x41685a
mov al, byte [esp + 0x55]
cmp al, byte [esp + 0x195]
jne 0x41685a
mov cl, byte [esp + 0x56]
cmp cl, byte [esp + 0x196]
jne 0x41685a
mov dl, byte [esp + 0x57]
cmp dl, byte [esp + 0x197]
jne 0x41685a
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4168d7
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
cmp edi, ebx
je 0x4168d7
cmp dword [esi + 0xa4], ebx
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x41688f
mov eax, dword [esi + 0xa4]
push eax
call ebp
cmp eax, ebx
je 0x41688f
mov dword [esi + 0xa4], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x4168a0
cmp eax, edi
je 0x4168a0
push eax
call ebp
push 1
mov eax, edi
push eax
mov dword [esi + 0xa4], edi
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x30
push ecx
call edi
mov edx, dword [esi + 4]
push 0x42aaa8
push ebx
push 0x44d
push edx
call edi
mov eax, dword [esi + 4]
push ebx
push ebx
push 0x421
push eax
call edi
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebp, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3b8], ebx
mov eax, dword [esi + 0xa4]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
push 0x424
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 0x42aab0
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call edi
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
cmp edx, 4
jge 0x41696e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 0x42aab4
push ebp
call edi
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov dword [esi + 0xb0], edx
jmp 0x416974
mov dword [esi + 0xb0], ebx
mov eax, dword [esp + 0x18]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x110
lea ecx, [esp + 0x29c]
push ebx
push ecx
mov dword [esp + 0x2a0], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x298]
cmp eax, 5
jb 0x416a5c
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x100a
mov dword [esp + 0x28], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x4169e7
cmp dword [esp + 0x18], ebx
jne 0x4169e7
mov al, 1
jmp 0x4169e9
xor al, al
mov cl, byte [esi + 0x85]
and al, 1
or al, 4
add al, al
and cl, 0xfd
or al, cl
mov byte [esi + 0x85], al
shr al, 1
not al
and al, 1
call fcn.00416c20
mov eax, dword [esp + 0x298]
cmp eax, 5
jne 0x416a23
cmp dword [esp + 0x29c], 1
jae 0x416a25
jmp 0x416a5c
jbe 0x416a5c
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x1022
mov dword [esp + 0x28], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x416a49
cmp dword [esp + 0x18], ebx
je 0x416a49
mov al, 1
jmp 0x416a4b
xor al, al
mov cl, byte [esi + 0x85]
xor cl, al
and cl, 1
xor byte [esi + 0x85], cl
call fcn.004056a0
test al, al
je 0x416ac1
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
push edx
lea ebx, [esp + 0x30]
call fcn.004050b0
add esp, 4
test eax, eax
jl 0x416abf
cmp dword [esp + 0x18], 6
jb 0x416abf
test byte [esi + 0x58], 0x10
jne 0x416abf
push str.uxtheme.dll
mov byte [esp + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x416b17
push str.IsThemeActive
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416ac7
call eax
test eax, eax
je 0x416ac7
mov bl, 1
jmp 0x416ac9
xor ebx, ebx
mov byte [esp + 0x17], bl
jmp 0x416afd
xor bl, bl
push str.IsAppThemed
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test bl, bl
je 0x416ae8
test eax, eax
je 0x416ae8
call eax
test eax, eax
mov byte [esp + 0x17], 1
jne 0x416aed
mov byte [esp + 0x17], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [esp + 0x17], 0
jne 0x416b17
xor ebx, ebx
test byte [esi + 0x86], 1
je 0x416b17
cmp dword [esi + 0x44], ebx
je 0x416b17
cmp dword [esi + 0x50], ebx
jle 0x416b17
mov edi, esi
call fcn.004146d0
mov al, byte [esi + 0x86]
xor al, byte [esp + 0x17]
mov ecx, dword [esp + 0x30]
push ebp
and al, 1
xor byte [esi + 0x86], al
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.00424bfa
add esp, 0x3a8
ret