Function at 0x1400045c0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x190
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004e988]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, rcx
cmp dword [0x14004f120], 0
jne 0x140004691
call fcn.140024270
mov r9d, eax
mov ebx, 1
cmp eax, ebx
jne 0x140004652
lea rax, [0x14004a050]
mov rcx, qword [0x14004a050]
cmp rcx, rax
je 0x14000463f
test byte [rcx + 0x1c], bl
je 0x14000463f
lea edx, [rbx + 0x13]
lea r8, [0x140033de8]
mov rcx, qword [rcx + 0x10]
call fcn.140002048
mov dword [rsi + 0x24], 0x42a
mov dword [rsi + 0x28], 0x42c
jmp 0x1400048bb
test r9d, r9d
jns 0x140004696
lea rax, [0x14004a050]
mov rcx, qword [0x14004a050]
cmp rcx, rax
je 0x1400048bb
test byte [rcx + 0x1c], bl
je 0x1400048bb
mov edx, 0x15
lea r8, [0x140033de8]
mov rcx, qword [rcx + 0x10]
call fcn.1400020a4
jmp 0x1400048bb
mov ebx, 1
cmp qword [section..data], 0
jne 0x140004819
xor r14d, r14d
cmp byte [0x14004f118], r14b
jne 0x14000479e
mov dword [rsp + 0x60], VarUI4FromDisp
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400046f3
mov ecx, dword [rsp + 0x64]
cmp ecx, 6
setb al
mov byte [0x14004f104], al
cmp ecx, 6
ja 0x1400046e8
jne 0x1400046eb
cmp dword [rsp + 0x68], ebx
jbe 0x1400046eb
mov r14d, ebx
test al, al
jne 0x140004796
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140004722
test r14d, r14d
je 0x14000473e
lea rcx, str.api_ms_win_eventing_provider_l1_1_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x14000473e
lea rdx, str.EventWrite
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004f110], rax
test rax, rax
jne 0x140004748
mov al, bl
mov byte [0x14004f104], bl
jmp 0x140004796
lea rdx, str.EventRegister
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004a048], rax
test rax, rax
jne 0x140004774
lea rax, [0x140001a30]
mov qword [0x14004a048], rax
jmp 0x14000473e
lea rdx, str.EventUnregister
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004f0c8], rax
test rax, rax
je 0x140004764
mov al, byte [0x14004f104]
mov byte [0x14004f118], bl
jmp 0x1400047a4
mov al, byte [0x14004f104]
lea rdx, [section..data]
test al, al
jne 0x1400047d2
mov r9, rdx
mov r8, rdx
lea rdx, [0x1400018f0]
lea rcx, [0x140033348]
mov rax, qword [0x14004a048]
call qword [0x140032088]
jmp 0x140004819
mov qword [section..data], rdx
lea rax, [0x140033348]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x48], 0
mov qword [rsp + 0x38], rdx
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov r8, rax
lea rcx, [0x140001780]
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
test byte [0x14004f100], bl
je 0x140004834
lea r8, [0x140033380]
lea rdx, [0x140033318]
call fcn.140003c8c
mov ecx, 0xc8
int3
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14002b7b0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret