Function at 0x140001600
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1a8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x74], 0xa
jae 0x14000164d
jmp 0x14000181a
call fcn.140001230
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x1c0]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x58
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
add rax, 0x58
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx]
cmp eax, ecx
jl 0x140001707
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 2]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rcx + 8]
xor eax, eax
mov rcx, qword [rsp + 0x68]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rdi, qword [rcx + 8]
mov rsi, qword [rdx + 8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
jmp 0x14000175d
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 2]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x58]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rcx + 8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 2]
mov word [rax + 2], cx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x1400017f6
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x1400017f6
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 2]
test eax, eax
je 0x1400017f6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 2]
mov word [rax + 2], cx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140003090
add rsp, 0x1a8
pop rdi
pop rsi
ret