Function at 0x422cb6
Capabilities:
Check os version

Disassembly:
push 0x394
mov eax, 0x4466c0
call fcn.00436729
mov edi, 0x1f8
mov esi, ecx
mov ebx, edi
call fcn.00424c21
lea ecx, [edi - 4]
test al, al
jne 0x422cdc
mov ebx, ecx
mov dword [ebp - 0x268], ebx
push ecx
xor ebx, ebx
lea eax, [ebp - 0x264]
push ebx
push eax
call fcn.00435dc0
add esp, 0xc
push ebx
lea eax, [ebp - 0x268]
push eax
push edi
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp eax, ebx
je 0x422e6f
push 0x58
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], ebx
call fcn.00435dc0
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, ebx
je 0x422d37
lea ecx, [ebp - 0x70]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x188]
jne 0x422deb
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x184]
jne 0x422deb
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x180]
jne 0x422deb
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x17c]
jne 0x422deb
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x178]
jne 0x422deb
mov al, byte [ebp - 0x5c]
cmp al, byte [ebp - 0x174]
jne 0x422deb
mov al, byte [ebp - 0x5b]
cmp al, byte [ebp - 0x173]
jne 0x422deb
mov al, byte [ebp - 0x5a]
cmp al, byte [ebp - 0x172]
jne 0x422deb
mov al, byte [ebp - 0x59]
cmp al, byte [ebp - 0x171]
jne 0x422deb
mov al, byte [ebp - 0x58]
cmp al, byte [ebp - 0x170]
jne 0x422deb
mov al, byte [ebp - 0x57]
cmp al, byte [ebp - 0x16f]
jne 0x422deb
mov al, byte [ebp - 0x56]
cmp al, byte [ebp - 0x16e]
jne 0x422deb
mov al, byte [ebp - 0x55]
cmp al, byte [ebp - 0x16d]
jne 0x422deb
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x422e6f
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x388], eax
cmp eax, ebx
je 0x422e6f
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0xa4], ebx
je 0x422e22
push dword [esi + 0xa4]
call edi
cmp eax, ebx
je 0x422e22
mov dword [esi + 0xa4], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x422e37
cmp eax, dword [ebp - 0x388]
je 0x422e37
push eax
call edi
mov eax, dword [ebp - 0x388]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
mov dword [esi + 0xa4], eax
push dword [esi + 4]
call edi
push 0x44e0cc
push ebx
push 0x44d
push dword [esi + 4]
call edi
push ebx
push ebx
push 0x421
push dword [esi + 4]
call edi
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x38c], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x390], eax
mov dword [ebp - 4], ebx
push dword [esi + 0xa4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
push 0x424
mov dword [ebp - 0x388], eax
lea eax, [ebp - 0x3a0]
push eax
push 0xffffffffffffffff
push 0x44e0d4
push dword [ebp - 0x390]
mov dword [ebp - 0x3a0], ebx
mov dword [ebp - 0x39c], ebx
mov dword [ebp - 0x398], ebx
mov dword [ebp - 0x394], ebx
call edi
mov eax, dword [ebp - 0x398]
sub eax, dword [ebp - 0x3a0]
cmp eax, 4
jge 0x422f21
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea eax, [ebp - 0x3a0]
push eax
push 0xffffffffffffffff
push 0x44e0d8
push dword [ebp - 0x390]
call edi
mov eax, dword [ebp - 0x398]
sub eax, dword [ebp - 0x3a0]
mov dword [esi + 0xb0], eax
jmp 0x422f27
mov dword [esi + 0xb0], ebx
push dword [ebp - 0x388]
push dword [ebp - 0x390]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x110
lea eax, [ebp - 0x37c]
push ebx
push eax
mov dword [ebp - 0x380], 0x114
call fcn.00435dc0
add esp, 0xc
lea eax, [ebp - 0x380]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x37c], 5
jb 0x423018
push ebx
lea eax, [ebp - 0x388]
push eax
push ebx
push 0x100a
mov dword [ebp - 0x388], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x422fa0
cmp dword [ebp - 0x388], ebx
jne 0x422fa0
mov al, 1
jmp 0x422fa2
xor al, al
and al, 1
or al, 4
lea edi, [esi + 0x85]
mov cl, byte [edi]
add al, al
and cl, 0xfd
or al, cl
mov byte [edi], al
shr al, 1
not al
and al, 1
call fcn.004231a1
cmp dword [ebp - 0x37c], 5
jne 0x422fdb
cmp dword [ebp - 0x378], 1
jae 0x422fdd
cmp dword [ebp - 0x37c], 5
jbe 0x423018
push ebx
lea eax, [ebp - 0x388]
push eax
push ebx
push 0x1022
mov dword [ebp - 0x388], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x423007
cmp dword [ebp - 0x388], ebx
je 0x423007
mov al, 1
jmp 0x423009
xor al, al
lea edi, [esi + 0x85]
mov cl, byte [edi]
xor cl, al
and cl, 1
xor byte [edi], cl
call fcn.00424c21
test al, al
je 0x4230fa
call fcn.00424d08
test al, al
je 0x4230fa
test byte [esi + 0x58], 0x10
jne 0x4230fa
push str.uxtheme.dll
mov byte [ebp - 0x381], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x388], eax
cmp eax, ebx
je 0x4230d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push eax
call edi
cmp eax, ebx
je 0x423077
call eax
mov byte [ebp - 0x381], 1
test eax, eax
jne 0x42307d
mov byte [ebp - 0x381], bl
push str.IsAppThemed
push dword [ebp - 0x388]
call edi
cmp byte [ebp - 0x381], bl
je 0x4230a3
cmp eax, ebx
je 0x4230a3
call eax
mov byte [ebp - 0x381], 1
test eax, eax
jne 0x4230a9
mov byte [ebp - 0x381], bl
push dword [ebp - 0x388]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x381], bl
jne 0x4230d7
test byte [esi + 0x86], 1
je 0x4230d7
cmp dword [esi + 0x44], ebx
je 0x4230d7
cmp dword [esi + 0x50], ebx
jle 0x4230d7
mov edi, esi
call fcn.004231e9
add esi, 0x86
mov al, byte [esi]
xor al, byte [ebp - 0x381]
and al, 1
xor byte [esi], al
lea esi, [ebp - 0x390]
call fcn.00424d37
call fcn.004367ac
ret
mov byte [ebp - 0x381], bl
jmp 0x4230bd