Function at 0x14004f6e0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r13d, r8d
mov rsi, rdx
mov rbx, rcx
lea rax, [0x1402777b8]
mov qword [rcx], rax
mov edx, 0xa
add rcx, 0x30
call fcn.1401f85a4
lea r11, [0x140277910]
mov qword [rbx + 0x30], r11
call fcn.1401fa4b0
mov rdx, rax
xor r15d, r15d
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14004f751
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x68], rax
or rbp, 0xffffffffffffffff
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x78], r15d
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov dword [rbx + 0x7c], r15d
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x20], 0x1e
mov dword [rbx + 0x24], r15d
mov dword [rbx + 0x1c], r15d
mov dword [rbx + 0x28], r15d
xor eax, eax
mov rcx, rbp
lea rdi, [0x140273028]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140273028]
lea rcx, [rbx + 0x68]
call fcn.140007880
mov dword [rbx + 0x70], ebp
lea rax, [0x140277148]
mov qword [rbx], rax
call fcn.1401fa4b0
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14004f7e3
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x88], rax
lea r14, [0x140285368]
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x98], r15
mov qword [rbx + 0xa0], r15
mov dword [rbx + 0xa8], r15d
mov dword [rbx + 0xac], r15d
mov dword [rbx + 0xb0], r15d
mov dword [rbx + 0xb4], r15d
mov byte [rbx + 0xb8], 0
mov byte [rbx + 0xb9], 0
mov dword [rbx + 0xbc], ebp
mov qword [rbx + 0xc0], r15
mov dword [rbx + 0xc8], r15d
mov qword [rbx + 0xd0], r15
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140325e70], 1
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdi, [0x140285328]
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0xd8], r15
mov qword [rbx + 0xe0], r14
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0xf0], r15
mov dword [rbx + 0xf8], r15d
mov dword [rbx + 0xfc], r15d
mov dword [rbx + 0x100], r15d
mov dword [rbx + 0x104], r15d
mov byte [rbx + 0x108], 0
mov byte [rbx + 0x109], 0
mov dword [rbx + 0x10c], ebp
mov qword [rbx + 0x110], r15
mov dword [rbx + 0x118], r15d
mov qword [rbx + 0x120], r15
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140325e70], 1
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0xe0], rdi
mov qword [rbx + 0x128], r15
mov qword [rbx + 0x130], r14
mov qword [rbx + 0x138], r15
mov qword [rbx + 0x140], r15
mov dword [rbx + 0x148], r15d
mov dword [rbx + 0x14c], r15d
mov dword [rbx + 0x150], r15d
mov dword [rbx + 0x154], r15d
mov byte [rbx + 0x158], 0
mov byte [rbx + 0x159], 0
mov dword [rbx + 0x15c], ebp
mov qword [rbx + 0x160], r15
mov dword [rbx + 0x168], r15d
mov qword [rbx + 0x170], r15
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140325e70], 1
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0x130], rdi
mov qword [rbx + 0x178], r15
mov qword [rbx + 0x180], r14
mov qword [rbx + 0x188], r15
mov qword [rbx + 0x190], r15
mov dword [rbx + 0x198], r15d
mov dword [rbx + 0x19c], r15d
mov dword [rbx + 0x1a0], r15d
mov dword [rbx + reloc.OLEAUT32.dll_OleTranslateColor], r15d
mov byte [rbx + 0x1a8], 0
mov byte [rbx + 0x1a9], 0
mov dword [rbx + 0x1ac], ebp
mov qword [rbx + 0x1b0], r15
mov dword [rbx + 0x1b8], r15d
mov qword [rbx + 0x1c0], r15
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140325e70], 1
lea rcx, [0x140325e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0x180], rdi
mov qword [rbx + 0x1c8], r15
mov qword [rbx + 0x10], rsi
mov dword [rbx + 0x7c], r13d
xor eax, eax
mov rcx, rbp
lea rdi, [0x140273028]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140273028]
lea rcx, [rbx + 0x88]
call fcn.140007880
xor eax, eax
mov dword [rbx + 0x80], eax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004fdd8
add rcx, 0x238
lea rdx, [rsp + 0x88]
call fcn.1401cedd0
bt dword [rsi + 0xbc], 0xc
jae 0x14004fb39
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x10000
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x4000
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x10000
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x800000
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 8
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x800
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x200000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 8
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x80000000
mov eax, dword [0x140326104]
test eax, eax
jne 0x14004fb15
mov dword [0x140326100], 0x114
lea rcx, [0x140326100]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140326104]
cmp eax, 6
jne 0x14004fb39
cmp dword [0x140326108], 1
jne 0x14004fb39
cmp word [rsi + 0x408], 0x2a34
jb 0x14004fb39
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x400000
test byte [rsi + 0xe8], 0x20
je 0x14004fb49
or dword [rbx + 0x80], 0x40
cmp word [rsi + 0x40e], 0x103c
jne 0x14004fb68
cmp dword [rsi + 0x1aa0], 1
jne 0x14004fb68
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x2000
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0x42
jg 0x14004fba1
cmp ecx, 0x42
je 0x14004fb94
cmp ecx, 6
jl 0x14004fc09
cmp ecx, 7
jle 0x14004fbf0
cmp ecx, 8
je 0x14004fbb8
cmp ecx, 0x12
je 0x14004fc01
cmp ecx, 0x18
je 0x14004fbb8
jmp 0x14004fc09
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x4000
jmp 0x14004fc09
sub ecx, 0x56
je 0x14004fc01
sub ecx, 8
je 0x14004fbf0
sub ecx, 0x7d
je 0x14004fbb8
cmp ecx, 0xd5
jne 0x14004fc09
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 4
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x800
cmp dword [rbx + 0x7c], 0x18
je 0x14004fbe7
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x2000
or dword [rbx + 0x80], 4
jmp 0x14004fc09
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x20
or dword [rbx + 0x80], 1
jmp 0x14004fc09
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x20
cmp dword [rbx + 0x7c], 0xdb
jne 0x14004fc19
or dword [rbx + 0x80], 2
movzx ecx, word [rsi + 0x40a]
shl ecx, 0x10
movzx eax, word [rsi + 0x408]
or ecx, eax
cmp ecx, 0x103c2a95
ja 0x14004fcdd
cmp ecx, 0x103c2a95
je 0x14004fd37
cmp ecx, 0x103c280c
ja 0x14004fca6
cmp ecx, 0x103c280c
je 0x14004fdae
cmp ecx, 0x103c12ff
je 0x14004fdae
cmp ecx, 0x103c1305
jbe 0x14004fdb6
cmp ecx, 0x103c1308
jbe 0x14004fdae
cmp ecx, 0x103c2001
jne 0x14004fdb6
or dword [rbx + 0x80], 0x10
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x4000000
or dword [rbx + 0x80], 0x20
jmp 0x14004fdb6
sub ecx, 0x103c2a43
je 0x14004fccd
sub ecx, 0x13
je 0x14004fcc1
cmp ecx, 0x38
je 0x14004fd59
jmp 0x14004fdb6
or dword [rbx + 0x80], 8
jmp 0x14004fdb6
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x4000
jmp 0x14004fdb6
cmp ecx, 0x103c2aa1
ja 0x14004fd7b
cmp ecx, 0x103c2aa1
je 0x14004fd59
sub ecx, 0x103c2a9a
je 0x14004fd37
sub ecx, 2
je 0x14004fd22
cmp ecx, 4
jne 0x14004fdb6
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x800000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x8000000
jmp 0x14004fdb6
mov rax, qword [rbx + 0x10]
and dword [rax + 8], 0xffffdfff
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 4
jmp 0x14004fdb6
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x800000
or dword [rbx + 0x80], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x8000000
jmp 0x14004fdb6
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x800000
or dword [rbx + 0x80], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x8000000
jmp 0x14004fdb6
cmp ecx, 0x103c3010
jb 0x14004fdb6
cmp ecx, 0x103c3016
jbe 0x14004fdae
cmp ecx, 0x103c3045
je 0x14004fd9d
cmp ecx, 0x103c30ba
je 0x14004fdae
jmp 0x14004fdb6
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x20
or dword [rbx + 0x80], 0x20
jmp 0x14004fdb6
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 8
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14004fdd8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret