Function at 0x14002b550
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov dword [rsp + 0x50], 0x114
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov word [rsp + 0x64], r12w
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14002b948
cmp dword [rsp + 0x54], 5
jne 0x14002b948
cmp dword [rsp + 0x58], 1
jne 0x14002b948
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
lea rcx, [rsp + 0x64]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r14, rax
mov rsi, qword [rsp + 0x40]
cmp rax, rsi
ja 0x14002b640
lea rdi, [rsp + 0x28]
cmp rsi, 8
cmovae rdi, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rbx, [rax + rax]
mov r8, rbx
lea rdx, [rsp + 0x64]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov word [rbx + rdi], r12w
jmp 0x14002b752
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x14002b9dd
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x14002b67e
mov rdx, rsi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rsi, rax
ja 0x14002b67e
lea rax, [rsi + rdx]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x14002b6a1
mov rdx, r8
jmp 0x14002b6aa
cmp rdx, 0x1000
jb 0x14002b6d4
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.14001f5e4
test rax, rax
je 0x14002b6cd
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14002b6e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdx, rdx
je 0x14002b6e6
mov rcx, rdx
call fcn.14001f5e4
mov rdi, rax
jmp 0x14002b6e9
mov rdi, r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rbx
lea rbx, [r14 + r14]
mov r8, rbx
lea rdx, [rsp + 0x64]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov word [rbx + rdi], r12w
cmp rsi, 8
jb 0x14002b74d
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b748
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b748
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f8d4
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x28]
call fcn.1400020d4
mov rsi, rax
cmp rax, 1
jb 0x14002b7ef
mov rbx, r12
test rax, rax
je 0x14002b7ef
lea rcx, [rsp + 0x28]
call fcn.140002040
mov rdi, rax
cmp qword [rdi + 0x10], rbx
jbe 0x14002b9e9
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002b799
mov rax, qword [rdi]
movzx edx, word [rax + rbx*2]
lea rcx, str.__r_t_n
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14002b7b7
inc rbx
cmp rbx, rsi
jb 0x14002b782
test rbx, rbx
je 0x14002b7ef
lea r9, [rdi + 0x10]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140003a60
mov r8, qword [r9]
cmp qword [rdi + 0x18], 8
jb 0x14002b7da
mov rdi, qword [rdi]
sub r8, rax
mov qword [r9], r8
inc r8
lea rdx, [rdi + rax*2]
mov rcx, rdi
call fcn.140002244
lea rcx, [rsp + 0x28]
call fcn.1400020d4
mov r15, rax
cmp rax, 1
jb 0x14002b8b8
mov rdi, rax
test rax, rax
je 0x14002b8b8
lea rcx, [rsp + 0x28]
call fcn.140002040
mov rbx, rax
lea r14, [rdi*2 - 2]
nop word [rax + rax]
lea rsi, [rdi - 1]
cmp qword [rbx + 0x10], rsi
jbe 0x14002b9d7
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b84b
mov rax, qword [rbx]
movzx edx, word [r14 + rax]
lea rcx, str.__r_t_n
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14002b86e
mov rdi, rsi
sub r14, 2
test rsi, rsi
jne 0x14002b830
cmp rdi, r15
jae 0x14002b8b8
lea r10, [rbx + 0x10]
mov r9, qword [r10]
cmp r9, rdi
jb 0x14002b9e3
sub r15, rdi
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.140003a60
cmp qword [rbx + 0x18], 8
jb 0x14002b89e
mov rbx, qword [rbx]
lea rcx, [rbx + rdi*2]
sub r9, rax
mov qword [r10], r9
sub r9, rdi
lea r8, [r9 + 1]
lea rdx, [rcx + rax*2]
call fcn.140002244
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
jb 0x14002b8cf
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14002b8e3
lea rdx, str.Service_Pack_1
call fcn.140003f50
test al, al
jne 0x14002b977
cmp qword [rsp + 0x38], 0
je 0x14002b977
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002b934
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b92f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b92f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f8d4
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14001f5c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002b9bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b9b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b9b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f8d4
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
mov al, 1
jmp 0x14002b94a
call fcn.140003a80
nop
call fcn.1400024e0
nop
call fcn.140003a80
int3
call fcn.140003a80
int3