Function at 0x18006e180
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x3e0
mov rax, qword [0x18013b490]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rbx, rcx
lea rcx, [rsp + 0xb4]
xor edx, edx
mov r8d, 0x1f0
mov dword [rsp + 0xb0], 0x1f4
call fcn.180076350
xor r9d, r9d
lea r8, [rsp + 0xb0]
lea ecx, [r9 + 0x29]
mov edx, 0x1f4
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x18006e39d
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x5c]
call fcn.180076350
mov rcx, qword [rbx + 0x110]
test rcx, rcx
je 0x18006e21a
lea r8, [rsp + 0x50]
mov edx, 0x5c
call qword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [rsp + 0x190]
cmp dword [rsp + 0x50], eax
jne 0x18006e2fa
mov eax, dword [rsp + 0x194]
cmp dword [rsp + 0x54], eax
jne 0x18006e2fa
mov eax, dword [rsp + 0x198]
cmp dword [rsp + 0x58], eax
jne 0x18006e2fa
mov eax, dword [rsp + 0x19c]
cmp dword [rsp + 0x5c], eax
jne 0x18006e2fa
mov eax, dword [rsp + 0x1a0]
cmp dword [rsp + 0x60], eax
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1a4]
cmp byte [rsp + 0x64], al
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1a5]
cmp byte [rsp + 0x65], al
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1a6]
cmp byte [rsp + 0x66], al
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1a7]
cmp byte [rsp + 0x67], al
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1a8]
cmp byte [rsp + 0x68], al
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1a9]
cmp byte [rsp + 0x69], al
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1aa]
cmp byte [rsp + 0x6a], al
jne 0x18006e2fa
movzx eax, byte [rsp + 0x1ab]
cmp byte [rsp + 0x6b], al
jne 0x18006e2fa
lea rdx, [rsp + 0x1ac]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18006e39d
lea rcx, [rsp + 0x190]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov rdi, rax
test rax, rax
je 0x18006e39d
cmp qword [rbx + 0x110], 0
je 0x18006e33a
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x18006e33a
mov qword [rbx + 0x110], 0
mov rcx, qword [rbx + 0x110]
test rcx, rcx
je 0x18006e351
cmp rcx, rdi
je 0x18006e351
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r9d, 1
mov qword [rbx + 0x110], rdi
mov rcx, qword [rbx + 8]
lea edx, [r9 + 0x2f]
mov r8, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 8]
lea r9, [0x180098798]
xor r8d, r8d
mov edx, 0x44d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x421
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, qword [rbx + 8]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowDC]
mov rdx, qword [rbx + 0x110]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea r9, [rsp + 0x38]
lea rdx, [0x180098790]
mov rdi, rax
xor eax, eax
or r8d, 0xffffffff
mov rcx, rsi
mov dword [rsp + 0x20], 0x424
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_DrawTextW]
mov r11d, dword [rsp + 0x40]
sub r11d, dword [rsp + 0x38]
cmp r11d, 4
jge 0x18006e442
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetRectEmpty]
lea r9, [rsp + 0x38]
lea rdx, [0x18009878c]
or r8d, 0xffffffff
mov rcx, rsi
mov dword [rsp + 0x20], 0x424
call qword [sym.imp.USER32.dll_DrawTextW]
mov r11d, dword [rsp + 0x40]
sub r11d, dword [rsp + 0x38]
mov dword [rbx + 0x128], r11d
jmp 0x18006e44c
mov dword [rbx + 0x128], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
lea rcx, [rsp + 0x2b4]
xor edx, edx
mov r8d, VarUI4FromDisp
mov dword [rsp + 0x2b0], VarUI4FromDisp
call fcn.180076350
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rsp + 0x2b4]
cmp r11d, 5
jb 0x18006e548
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov ecx, 0x100a
mov dword [rsp + 0x30], 1
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x18006e4c4
cmp dword [rsp + 0x30], 0
jne 0x18006e4c4
mov al, 1
jmp 0x18006e4c6
xor eax, eax
and byte [rbx + 0xf1], 0xfd
and al, 1
mov rcx, rbx
or al, 4
add al, al
or byte [rbx + 0xf1], al
movzx edx, byte [rbx + 0xf1]
shr dl, 1
not dl
and dl, 1
call fcn.18006d160
mov r11d, dword [rsp + 0x2b4]
cmp r11d, 5
jne 0x18006e509
cmp dword [rsp + 0x2b8], 1
jae 0x18006e50b
jmp 0x18006e548
jbe 0x18006e548
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov ecx, 0x1022
mov dword [rsp + 0x30], 0
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x18006e537
cmp dword [rsp + 0x30], 0
je 0x18006e537
mov al, 1
jmp 0x18006e539
xor eax, eax
and byte [rbx + 0xf1], 0xfe
and al, 1
or byte [rbx + 0xf1], al
test byte [rbx + 0x98], 0x10
jne 0x18006e57c
call fcn.1800016a0
test al, al
je 0x18006e57c
call fcn.18006b1b0
test al, al
je 0x18006e57c
call qword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x18006e57c
call qword [sym.imp.UxTheme.dll_IsAppThemed]
test eax, eax
je 0x18006e57c
mov dil, 1
jmp 0x18006e5a0
xor dil, dil
test byte [rbx + 0xf2], 1
je 0x18006e5a0
cmp qword [rbx + 0x78], 0
je 0x18006e5a0
cmp dword [rbx + 0x90], 0
jle 0x18006e5a0
mov rcx, rbx
call fcn.18005b580
and byte [rbx + 0xf2], 0xfe
and dil, 1
mov rdx, rsi
or byte [rbx + 0xf2], dil
mov rcx, rbp
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.180076320
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret