Function at 0x140008378
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5a8]
sub rsp, 0x670
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov bl, r8b
mov r15, rdx
mov r12, rcx
mov byte [rsp + 0x30], bl
mov r14b, byte [rbp + 0x5d0]
mov rsi, qword [rbp + 0x5e0]
mov edi, 0x80070057
xor r13d, r13d
test r9b, r9b
jne 0x1400083e7
test r14b, r14b
je 0x140008755
lea rcx, [rbp - 0x40]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov edi, eax
test eax, eax
js 0x140008755
mov r8d, 0x27
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rax, [0x1400038c8]
lea r8, [0x1400038f8]
test bl, bl
cmovne r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x350]
call fcn.140004fec
mov edi, eax
test eax, eax
js 0x14000845a
mov word [rbp + 0x13a], r13w
lea r8, [rbp + 0xf2]
lea rcx, [rbp + 0x350]
call fcn.140004f08
mov edi, eax
test edi, edi
jne 0x1400084d3
test r14b, r14b
je 0x1400084d9
mov r8, qword [r15 + 0x58]
mov edx, 0x104
lea rcx, [rbp + 0x140]
call fcn.140004fec
mov edi, eax
test eax, eax
js 0x140008755
lea r8, [0x140003914]
lea rcx, [rbp + 0x140]
call fcn.140004f08
mov edi, eax
test eax, eax
js 0x140008755
lea r8, [rbp + 0x350]
lea rcx, [rbp + 0x140]
call fcn.140004f08
mov edi, eax
test eax, eax
js 0x140008755
lea r8, [0x140002b60]
lea rcx, [rbp + 0x140]
call fcn.140004f08
mov edi, eax
test eax, eax
js 0x140008755
mov dil, r13b
test bl, bl
je 0x140008520
mov r13d, 0x11c
mov r8d, r13d
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140015ac0
mov dword [rbp - 0x30], r13d
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x20], 2
jne 0x140008520
cmp dword [rbp - 0x2c], 6
jne 0x140008520
cmp dword [rbp - 0x28], 1
jne 0x140008520
mov dil, 1
lea rcx, [0x140003918]
jmp 0x140008527
lea rcx, [rbp + 0x350]
mov qword [rsp + 0x38], rcx
test bl, bl
je 0x14000853c
test dil, dil
lea rax, [0x140002870]
jne 0x140008540
lea rax, [rbp - 0x40]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x80], xmm0
mov r8b, bl
lea rdx, [rbp - 0x80]
call fcn.14000a9cc
mov qword [rsp + 0x58], rax
mov dword [rax + 0x44], 1
test bl, bl
je 0x140008572
test dil, dil
je 0x140008572
mov ecx, dword [rbp + 0x5d8]
mov dword [rax + 0x48], ecx
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14000956c
nop
neg r14b
sbb rax, rax
lea rcx, [rbp + 0x140]
and rax, rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x5c8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140009658
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140009710
nop
mov rbx, qword [r15]
mov r9, rax
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.140009f64
mov rdx, rax
mov rax, qword [r15 + 8]
movabs rcx, 0x7fffffffffffffe
sub rcx, rax
cmp rcx, 1
jae 0x140008614
lea rcx, [0x140002c08]
call fcn.14000af64
int3
inc rax
mov qword [r15 + 8], rax
mov qword [rbx + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
lea rcx, [rbp - 0x60]
call fcn.140008794
mov rcx, qword [rsp + 0x40]
call fcn.14000aaa0
mov edi, eax
or r14d, 0xffffffff
test eax, eax
js 0x1400086ba
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140009488
mov rdx, qword [rax + 8]
mov rcx, qword [rsi + 8]
mov qword [rax + 8], rcx
mov qword [rsi + 8], rdx
mov rdx, qword [rax]
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rsi], rdx
mov rsi, qword [rbp - 0x68]
test rsi, rsi
je 0x1400086ba
mov eax, r14d
lock xadd dword [rsi + 8], eax
add eax, r14d
jne 0x1400086ba
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140004970]
mov rcx, rsi
call rbx
mov eax, r14d
lock xadd dword [rsi + 0xc], eax
add eax, r14d
jne 0x1400086ba
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140004970]
mov rcx, rsi
call rbx
nop
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140008708
mov eax, r14d
lock xadd dword [rsi + 8], eax
add eax, r14d
jne 0x140008708
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140004970]
mov rcx, rsi
call rbx
mov eax, r14d
lock xadd dword [rsi + 0xc], eax
add eax, r14d
jne 0x140008708
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140004970]
mov rcx, rsi
call rbx
nop
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x140008755
mov eax, r14d
lock xadd dword [rsi + 8], eax
add eax, r14d
jne 0x140008755
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140004970]
mov rcx, rsi
call rbx
mov eax, r14d
lock xadd dword [rsi + 0xc], eax
add eax, r14d
jne 0x140008755
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140004970]
mov rcx, rsi
call rbx
mov eax, edi
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14000b200
mov rbx, qword [rsp + 0x6b0]
add rsp, 0x670
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret