Function at 0x1400051b8
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 - 0x5b8]
sub rsp, 0x680
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14001b060]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov bl, r8b
mov r15, rdx
mov r12, rcx
mov byte [rsp + 0x30], bl
mov r14b, byte [rbp + 0x5e0]
mov rsi, qword [rbp + 0x5f0]
mov edi, 0x80070057
xor r13d, r13d
test r9b, r9b
jne 0x140005226
test r14b, r14b
je 0x14000553f
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateGuid]
mov edi, eax
test eax, eax
js 0x14000553f
mov r8d, 0x27
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
lea rax, str.IEEtwSession.System.
lea r8, str.IEEtwSession.
test bl, bl
cmovne r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.140001f74
mov edi, eax
test eax, eax
js 0x140005299
mov word [rbp + 0x14a], r13w
lea r8, [rbp + 0x102]
lea rcx, [rbp + 0x360]
call fcn.140001ea0
mov edi, eax
test edi, edi
jne 0x140005312
test r14b, r14b
je 0x140005318
mov r8, qword [r15 + 0x58]
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.140001f74
mov edi, eax
test eax, eax
js 0x14000553f
lea r8, [0x140016f74]
lea rcx, [rbp + 0x150]
call fcn.140001ea0
mov edi, eax
test eax, eax
js 0x14000553f
lea r8, [rbp + 0x360]
lea rcx, [rbp + 0x150]
call fcn.140001ea0
mov edi, eax
test eax, eax
js 0x14000553f
lea r8, str..etl
lea rcx, [rbp + 0x150]
call fcn.140001ea0
mov edi, eax
test eax, eax
js 0x14000553f
mov dil, r13b
test bl, bl
je 0x14000535f
mov r13d, 0x11c
mov r8d, r13d
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140012600
mov dword [rbp - 0x20], r13d
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x10], 2
jne 0x14000535f
cmp dword [rbp - 0x1c], 6
jne 0x14000535f
cmp dword [rbp - 0x18], 1
jne 0x14000535f
mov dil, 1
lea rcx, [0x140016f78]
jmp 0x140005366
lea rcx, [rbp + 0x360]
mov qword [rsp + 0x58], rcx
test bl, bl
je 0x14000537b
test dil, dil
lea rax, [0x140015ee0]
jne 0x14000537f
lea rax, [rbp - 0x38]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x70], xmm0
mov r8b, bl
lea rdx, [rbp - 0x70]
call fcn.1400075dc
mov qword [rsp + 0x70], rax
mov dword [rax + 0x44], 1
test bl, bl
je 0x1400053b1
test dil, dil
je 0x1400053b1
mov ecx, dword [rbp + 0x5e8]
mov dword [rax + 0x48], ecx
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.14000619c
nop
neg r14b
sbb rax, rax
lea rcx, [rbp + 0x150]
and rax, rcx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x5d8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.1400062a4
nop
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x58]
call fcn.140006374
nop
mov rbx, qword [r15]
mov r9, rax
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.140006b14
mov rdx, rax
mov rax, qword [r15 + 8]
movabs rcx, 0x7fffffffffffffe
sub rcx, rax
cmp rcx, 1
jae 0x140005453
lea rcx, [0x140016270]
call fcn.140007b48
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 - 0x58]
call fcn.140005580
mov rcx, qword [rsp + 0x48]
call fcn.1400076b0
mov edi, eax
test eax, eax
js 0x1400054e4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test r8, r8
je 0x1400054b7
jmp 0x1400054a3
lea ecx, [rax + 1]
lock cmpxchg dword [r8 + 8], ecx
je 0x1400054ad
mov eax, dword [r8 + 8]
test eax, eax
jne 0x140005498
jmp 0x1400054b7
lea rcx, [rsp + 0x38]
call fcn.14000185c
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x40], rax
mov qword [rsi + 8], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
mov qword [rsi], rcx
lea rcx, [rsp + 0x38]
call fcn.1400015fc
nop
mov rsi, qword [rbp - 0x80]
test rsi, rsi
je 0x140005535
or r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rsi + 8], eax
add eax, r14d
jne 0x140005535
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140001900]
mov rcx, rsi
call rbx
mov eax, r14d
lock xadd dword [rsi + 0xc], eax
add eax, r14d
jne 0x140005535
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140001900]
mov rcx, rsi
call rbx
nop
lea rcx, [rsp + 0x48]
call fcn.1400015fc
mov eax, edi
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140007df0
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x680
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret