Function at 0x140110550
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, method.v.virtual_0
mov qword [rcx], rax
mov edx, 0xa
add rcx, 0x30
call fcn.140139b24
lea r11, method..45.virtual_0
mov qword [rbx + 0x30], r11
call fcn.140129a50
mov rdx, rax
xor r15d, r15d
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1401105c1
mov ecx, 0x80004005
call fcn.140002d80
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 + 0x18], r15d
mov dword [rbx + 0x1c], r15d
mov dword [rbx + 0x24], 0x1e
mov dword [rbx + 0x28], r15d
mov dword [rbx + 0x20], r15d
mov dword [rbx + 0x2c], r15d
xor eax, eax
mov rcx, rbp
lea rdi, [0x14017f438]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14017f438]
lea rcx, [rbx + 0x68]
call fcn.1400032e0
mov dword [rbx + 0x70], ebp
lea rax, vtable..94.0
mov qword [rbx], rax
call fcn.140129a50
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140110653
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x88], rax
lea r14, [0x140182938]
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, [0x1402067d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140206800], 1
lea rcx, [0x1402067d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdi, [0x140182928]
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, [0x1402067d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140206800], 1
lea rcx, [0x1402067d8]
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, [0x1402067d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140206800], 1
lea rcx, [0x1402067d8]
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 + 0x1a4], 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, [0x1402067d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140206800], 1
lea rcx, [0x1402067d8]
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 + 0x18], r13d
xor eax, eax
mov rcx, rbp
lea rdi, [0x14017f438]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14017f438]
lea rcx, [rbx + 0x88]
call fcn.1400032e0
xor eax, eax
mov dword [rbx + 0x80], eax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140110c95
add rcx, 0x260
lea rdx, [rsp + 0x88]
call fcn.140103cd0
bt dword [rsi + 0xe0], 0xc
jae 0x14011099e
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x10000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x4000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x30], 0x10000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x800000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x30], 8
mov rax, qword [rbx + 0x10]
or dword [rax + 0x30], 0x800
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 8
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x80000000
mov eax, dword [0x140206d04]
test eax, eax
jne 0x14011097a
mov dword [0x140206d00], 0x114
lea rcx, [0x140206d00]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140206d04]
cmp eax, 6
jne 0x14011099e
cmp dword [0x140206d08], 1
jne 0x14011099e
cmp word [rsi + 0x430], 0x2a34
jb 0x14011099e
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x400000
test byte [rsi + 0x10c], 0x20
je 0x1401109ae
or dword [rbx + 0x80], 0x40
cmp word [rsi + 0x436], 0x103c
jne 0x1401109cd
cmp dword [rsi + 0x1c20], 1
jne 0x1401109cd
mov rax, qword [rbx + 0x10]
or dword [rax + 0x30], 0x2000
mov ecx, dword [rbx + 0x18]
cmp ecx, 0x56
jg 0x140110a1b
cmp ecx, 0x56
je case.0x140110a02.18
sub ecx, 6
cmp ecx, 0x3c
ja case.0x140110a02.9
movsxd rax, ecx
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x110cc4]
mov ecx, dword [rdx + rax*4 + 0x110cb0]
add rcx, rdx
jmp rcx
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x4000
jmp case.0x140110a02.9
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x20
jmp case.0x140110a02.9
sub ecx, 0x5e
je case.0x140110a02.6
sub ecx, 0x7d
je case.0x140110a02.8
sub ecx, 0xd5
je case.0x140110a02.8
cmp ecx, 0x9a98
jne case.0x140110a02.9
mov rax, qword [rbx + 0x10]
or dword [rax + 0x530], 0x2000
jmp case.0x140110a02.9
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 4
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x800
cmp dword [rbx + 0x18], 0x18
je 0x140110a74
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x2000
or dword [rbx + 0x80], 4
jmp case.0x140110a02.9
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x20
or dword [rbx + 0x80], 1
cmp dword [rbx + 0x18], 0xdb
jne 0x140110a9c
or dword [rbx + 0x80], 2
movzx ecx, word [rsi + 0x432]
shl ecx, 0x10
movzx eax, word [rsi + 0x430]
or ecx, eax
cmp ecx, 0x103c2a8e
ja 0x140110b7a
cmp ecx, 0x103c2a8e
je 0x140110bfe
cmp ecx, 0x103c2179
ja 0x140110b35
cmp ecx, 0x103c2179
je 0x140110c65
cmp ecx, 0x103c12ff
je 0x140110c5b
cmp ecx, 0x103c1305
jbe 0x140110c73
cmp ecx, 0x103c1308
jbe 0x140110c5b
cmp ecx, 0x103c18ea
je 0x140110c65
cmp ecx, 0x103c2001
jne 0x140110c73
or dword [rbx + 0x80], 0x10
mov rax, qword [rbx + 0x10]
or dword [rax + 0x30], 0x4000000
or dword [rbx + 0x80], 0x20
jmp 0x140110c73
sub ecx, 0x103c22ad
je 0x140110c65
sub ecx, 0x55f
je 0x140110c5b
sub ecx, 0x237
je 0x140110b6a
cmp ecx, 0x13
jne 0x140110c73
or dword [rbx + 0x80], 8
jmp 0x140110c73
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 0x4000
jmp 0x140110c73
cmp ecx, 0x103c2aa1
ja 0x140110c20
cmp ecx, 0x103c2aa1
je 0x140110bfe
sub ecx, 0x103c2a95
je 0x140110bdc
sub ecx, 5
je 0x140110bdc
sub ecx, 2
je 0x140110bc4
cmp ecx, 4
jne 0x140110c73
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x800000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x8000000
jmp 0x140110c73
mov rax, qword [rbx + 0x10]
and dword [rax + 0x2c], 0xffffdfff
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 4
jmp 0x140110c73
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x800000
or dword [rbx + 0x80], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x8000000
jmp 0x140110c73
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x800000
or dword [rbx + 0x80], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x8000000
jmp 0x140110c73
cmp ecx, 0x103c2b16
je 0x140110c65
cmp ecx, 0x103c300f
jbe 0x140110c73
cmp ecx, 0x103c3016
jbe 0x140110c5b
cmp ecx, 0x103c3045
je 0x140110c4a
cmp ecx, 0x103c30ba
je 0x140110c5b
jmp 0x140110c73
mov rax, qword [rbx + 0x10]
or dword [rax + 0x34], 0x20
or dword [rbx + 0x80], 0x20
jmp 0x140110c73
mov rax, qword [rbx + 0x10]
or dword [rax + 0x2c], 8
jmp 0x140110c73
mov rax, qword [rbx + 0x10]
or dword [rax + 0x530], 0x100
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140110c95
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