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 0x140005543
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoCreateGuid]
mov edi, eax
test eax, eax
js 0x140005543
mov r8d, 0x27
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_StringFromGUID2]
mov word [rbp + 0x14a], r13w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x140017018]
lea r9, str.IEEtwSession.Usr
test bl, bl
cmovne r9, rcx
lea rcx, [rbp + 0x102]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
lea r8, str._s__I32X__s
mov edx, 0x208
lea rcx, [rbp + 0x360]
call fcn.140007b48
mov edi, eax
test eax, eax
jne 0x140005314
test r14b, r14b
je 0x14000531c
mov r8, qword [r15 + 0x58]
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.140001f74
mov edi, eax
test eax, eax
js 0x140005543
lea r8, [0x140016f38]
lea rcx, [rbp + 0x150]
call fcn.140001ea0
mov edi, eax
test eax, eax
js 0x140005543
lea r8, [rbp + 0x360]
lea rcx, [rbp + 0x150]
call fcn.140001ea0
mov edi, eax
test eax, eax
js 0x140005543
lea r8, str..etl
lea rcx, [rbp + 0x150]
call fcn.140001ea0
mov edi, eax
test edi, edi
js 0x140005543
mov dil, r13b
test bl, bl
je 0x140005363
mov r13d, 0x11c
mov r8d, r13d
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140012e00
mov dword [rbp - 0x20], r13d
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x10], 2
jne 0x140005363
cmp dword [rbp - 0x1c], 6
jne 0x140005363
cmp dword [rbp - 0x18], 1
jne 0x140005363
mov dil, 1
lea rcx, str.NT_Kernel_Logger
jmp 0x14000536a
lea rcx, [rbp + 0x360]
mov qword [rsp + 0x58], rcx
test bl, bl
je 0x14000537f
test dil, dil
lea rax, [0x140015ef0]
jne 0x140005383
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 0x1400053b5
test dil, dil
je 0x1400053b5
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 0x140005457
lea rcx, [0x140016280]
call fcn.140007dc8
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.140005584
mov rcx, qword [rsp + 0x48]
call fcn.140007884
mov edi, eax
test eax, eax
js 0x1400054e8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test r8, r8
je 0x1400054bb
jmp 0x1400054a7
lea ecx, [rax + 1]
lock cmpxchg dword [r8 + 8], ecx
je 0x1400054b1
mov eax, dword [r8 + 8]
test eax, eax
jne 0x14000549c
jmp 0x1400054bb
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 0x140005539
or r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rsi + 8], eax
add eax, r14d
jne 0x140005539
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 0x140005539
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.140008070
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x680
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret