Function at 0x140002000
Capabilities:
Access pe header
Access peb ldr_data
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140299ac0]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r14d, r14d
lea rcx, [0x14008c1d8]
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rsi, [0x14008c1ec]
mov r12, rax
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
xorps xmm0, xmm0
mov qword [rbp - 0x50], 0x18
mov r13, rax
mov qword [rbp - 0x60], rax
xor eax, eax
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x28], rax
lea rdi, [rbp - 0x38]
lea rax, [rbp - 0x38]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x58], rax
lea r8, [rbp - 0x18]
xor eax, eax
lea rdx, [rbp - 0x1c]
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x20], rax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp - 0x18], eax
lea rdi, [rbp - 0x20]
mov ecx, 0xc
rep stosb byte [rdi], al
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x20], 6
jne 0x1400020c4
cmp dword [rbp - 0x1c], 2
jne 0x1400020c4
mov rbx, r12
mov rcx, r13
jmp 0x1400021be
xor eax, eax
lea rdi, [rbp - 0x20]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x18]
mov dword [rbp - 0x18], eax
lea rdx, [rbp - 0x1c]
mov ecx, 0xc
rep stosb byte [rdi], al
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x20], 6
jne 0x1400020f6
cmp dword [rbp - 0x1c], 3
je 0x140002100
mov eax, r14d
seta al
test eax, eax
je 0x140002112
mov rbx, r12
lea rsi, str..mrdata
mov rcx, r13
jmp 0x1400021be
mov rax, qword gs:[0x30]
mov qword [rsp + 0xb0], r15
mov rcx, qword [rax + 0x60]
mov r15, qword [rcx + 0x18]
add r15, 0x10
mov rsi, qword [r15]
cmp rsi, r15
je 0x1400021a3
movabs r13, 0xaabbcc11ffee00
mov rdi, qword [rsi + 0x30]
lea r14, [rsi]
mov rsi, qword [rsi]
test rdi, rdi
je 0x140002183
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x140002183
movsxd rdx, dword [rdi + 0x3c]
movzx ecx, word [rdx + rdi + 6]
lea eax, [rcx + rcx*4]
lea eax, [rdx + rax*8]
cdqe
cmp qword [rax + rdi + 0x108], r13
jne 0x140002183
cmp qword [rax + rdi + 0x118], rdi
je 0x140002197
test rbx, rbx
je 0x140002193
cmp qword [r14 + 0x30], rbx
cmovb rbx, qword [r14 + 0x30]
jmp 0x140002197
mov rbx, qword [r14 + 0x30]
cmp rsi, r15
jne 0x140002141
mov r13, qword [rbp - 0x60]
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r15, qword [rsp + 0xb0]
lea rsi, [0x14008c1ec]
mov rcx, rax
test rbx, rbx
je 0x1400022a1
test rcx, rcx
je 0x1400022a1
test r12, r12
je 0x1400022a1
test r13, r13
je 0x1400022a1
cmp dword [rcx + 0xa4], 0
je 0x1400021fa
mov eax, dword [rcx + 0xa0]
add rax, rbx
mov qword [rbp - 0x38], rax
jmp 0x1400021fe
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], rbx
lea r8, [rbp - 0x58]
mov eax, dword [rcx + 0x50]
mov rdx, rsi
mov dword [rbp - 0x28], eax
mov eax, dword [rcx + 0xa4]
mov rcx, r12
mov dword [rbp - 0x24], eax
call fcn.140001db0
test eax, eax
js 0x1400022a1
nop dword [rax + rax]
mov rbx, qword [rbp - 0x48]
lea rdi, [rbp - 0x20]
xor eax, eax
lea r8, [rbp - 0x18]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x1c]
mov dword [rbp - 0x18], eax
mov ecx, 0xc
rep stosb byte [rdi], al
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x20], 6
jne 0x140002266
cmp dword [rbp - 0x1c], 2
je 0x140002270
mov eax, r14d
seta al
test eax, eax
je 0x14000227f
cmp dword [rbx - 0xc], 0x200
jne 0x14000228e
cmp dword [rbx - 4], 0
je 0x1400022cb
cmp dword [rbx - 0xc], 0x200
jne 0x14000228e
cmp dword [rbx - 8], 0
je 0x1400022cb
lea r8, [rbp - 0x58]
mov rdx, rsi
mov rcx, r12
call fcn.140001db0
test eax, eax
jns 0x140002230
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003dac0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
lea rax, [rbx - 0x10]
jmp 0x1400022a3