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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140280a80]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
lea rcx, [0x140076128]
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x60], rax
mov r12, rax
lea r13, [0x14007613c]
test rax, rax
je 0x140001961
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
xorps xmm0, xmm0
mov qword [rbp - 0x48], 0x18
mov rsi, rax
mov qword [rbp - 0x58], rax
xor eax, eax
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x20], rax
lea rdi, [rbp - 0x30]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x50], rax
lea r8, [rbp - 0x10]
xor eax, eax
lea rdx, [rbp - 0x14]
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x18], rax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp - 0x10], eax
lea rdi, [rbp - 0x18]
mov ecx, 0xc
rep stosb byte [rdi], al
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x18], 6
jne 0x140001797
cmp dword [rbp - 0x14], 2
jne 0x140001797
mov rbx, r12
mov rcx, rsi
jmp 0x14000188b
xor eax, eax
lea rdi, [rbp - 0x18]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x10]
mov dword [rbp - 0x10], eax
lea rdx, [rbp - 0x14]
mov ecx, 0xc
rep stosb byte [rdi], al
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x18], 6
jne 0x1400017c9
cmp dword [rbp - 0x14], 3
je 0x1400017d3
mov eax, r14d
seta al
test eax, eax
je 0x1400017e5
mov rbx, r12
lea r13, str..mrdata
mov rcx, rsi
jmp 0x14000188b
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r15, qword [rcx + 0x18]
add r15, 0x10
mov rsi, qword [r15]
cmp rsi, r15
je 0x140001961
movabs r12, 0xaabbcc11ffee00
mov rdi, qword [rsi + 0x30]
lea r14, [rsi]
mov rsi, qword [rsi]
test rdi, rdi
je 0x140001852
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x140001852
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], r12
jne 0x140001852
cmp qword [rax + rdi + 0x118], rdi
je 0x140001866
test rbx, rbx
je 0x140001862
cmp qword [r14 + 0x30], rbx
cmovb rbx, qword [r14 + 0x30]
jmp 0x140001866
mov rbx, qword [r14 + 0x30]
cmp rsi, r15
jne 0x140001810
mov r12, qword [rbp - 0x60]
test rbx, rbx
je 0x140001961
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, qword [rbp - 0x58]
xor r14d, r14d
mov rcx, rax
test rcx, rcx
je 0x140001961
test rsi, rsi
je 0x140001961
cmp dword [rcx + 0xa4], 0
je 0x1400018b5
mov eax, dword [rcx + 0xa0]
add rax, rbx
mov qword [rbp - 0x30], rax
jmp 0x1400018b9
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x50]
mov eax, dword [rcx + 0x50]
mov rdx, r13
mov dword [rbp - 0x20], eax
mov eax, dword [rcx + 0xa4]
mov rcx, r12
mov dword [rbp - 0x1c], eax
call fcn.140001470
test eax, eax
js 0x140001961
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rbp - 0x40]
lea rdi, [rbp - 0x18]
xor eax, eax
lea r8, [rbp - 0x10]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x14]
mov dword [rbp - 0x10], eax
mov ecx, 0xc
rep stosb byte [rdi], al
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x18], 6
jne 0x140001926
cmp dword [rbp - 0x14], 2
je 0x140001930
mov eax, r14d
seta al
test eax, eax
je 0x14000193f
cmp dword [rbx - 0xc], 0x200
jne 0x14000194e
cmp dword [rbx - 4], 0
je 0x140001990
cmp dword [rbx - 0xc], 0x200
jne 0x14000194e
cmp dword [rbx - 8], 0
je 0x140001990
lea r8, [rbp - 0x50]
mov rdx, r13
mov rcx, r12
call fcn.140001470
test eax, eax
jns 0x1400018f0
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002cbc0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rax, [rbx - 0x10]
jmp 0x140001963