Function at 0x140051670
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rbx, rcx
lea rcx, str.CVolCustom::S3HpProtect_ShowWarning_n
call fcn.140001030
lea r9, str.Realtek_HD_Audio_CPL_for_Vista
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
test rax, rax
je 0x140051a19
cmp dword [rbx + 0x3b0], 0
je 0x140051a19
cmp dword [rbx + 0x3b8], 0
je 0x1400519b0
mov ecx, dword [0x1400e7b04]
test ecx, ecx
jne 0x1400516fd
mov dword [0x1400e7b00], 0x114
lea rcx, [0x1400e7b00]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [0x1400e7b04]
cmp ecx, 6
jne 0x1400519b0
cmp dword [0x1400e7b08], 2
jne 0x1400519b0
call fcn.1400544b4
mov rdx, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140051734
mov ecx, 0x80004005
call fcn.140012170
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea r13, [0x1400b40e8]
mov r12, r13
or rsi, 0xffffffffffffffff
shr r12, 0x10
jne 0x140051782
movzx edi, r13w
mov ecx, edi
call fcn.1400544a0
test rax, rax
je 0x1400517a5
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400118a0
jmp 0x1400517a5
xor eax, eax
mov rcx, rsi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x90]
call fcn.140011ed0
nop
call fcn.1400544b4
mov rcx, rax
test rax, rax
setne bpl
test ebp, ebp
jne 0x1400517c3
mov ecx, 0x80004005
call fcn.140012170
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x88], rax
test r12, r12
jne 0x1400517ff
movzx edi, r13w
mov ecx, edi
call fcn.1400544a0
test rax, rax
je 0x140051822
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1400118a0
jmp 0x140051822
xor eax, eax
mov rcx, rsi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x88]
call fcn.140011ed0
nop
lea rcx, [0x1400e7a28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400e7a28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1400e8a5c]
lea rcx, [0x1400e7a28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x14005195b
lea rcx, [rbx + 0x3a0]
call fcn.140023760
lea r8d, [rdi + 0x67]
lea rdx, [rsp + 0x90]
lea rcx, [rbx + 0x3a0]
call fcn.140023bc0
mov r8d, 0x3eb
lea rdx, [rsp + 0x88]
lea rcx, [rbx + 0x3a0]
call fcn.140023bc0
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov rdx, r13
lea rcx, [rsp + 0x98]
call fcn.140012090
mov rbx, rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x20]
call fcn.140011c30
mov rdi, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140011c30
nop
mov r9, rbx
mov r8, rdi
mov rdx, rax
mov ecx, 5
call fcn.140050550
mov r8d, eax
mov rdx, qword [rsp + 0x88]
lea rcx, str.CToastMgr::Display___s_return__d_n
call fcn.140001030
lea rcx, [0x1400e7a28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x1400e8a5c], 1
lea rcx, [0x1400e7a28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1400e8bf4], 0
jne 0x14005195b
lea r9, [0x140051af0]
xor edx, edx
xor ecx, ecx
mov r8d, 0x1b58
call qword [sym.imp.USER32.dll_SetTimer]
mov dword [0x1400e8bf4], eax
lea rcx, [0x1400e7a28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14005198d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140051a19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140051a19
cmp dword [rbx + 0x3bc], 0
je 0x1400519f4
mov dword [rbx + 0x190], 0x67
mov dword [rbx + 0x194], 0x3eb
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 8]
lea rcx, [rbx + 0x30]
call fcn.140060b34
mov dword [rbx + 0x17c], 1
lea rcx, [rbx + 0x30]
call fcn.140033830
jmp 0x140051a19
lea rcx, str.PostMessage_eVCplMsgSetBalloon_n
call fcn.140001030
mov r9d, 1
lea r8d, [r9 + 0xb]
mov edx, dword [0x1400e8c78]
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret