Function at 0x14002aa30
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x5d8], rbx
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r13, r8
cmp qword [rdx + 0x10], 0
jne 0x14002aa7e
xor al, al
jmp 0x14002af30
mov r8, rdx
lea rdx, [rsp + 0x30]
call fcn.14002af70
nop
xor esi, esi
cmp qword [rsp + 0x40], rsi
jne 0x14002aa9c
xor bl, bl
jmp 0x14002aed5
lea rcx, [rsp + 0x20]
call fcn.140004cc0
nop
call fcn.14002b550
mov ecx, 1
mov r8d, 2
test al, al
cmovne r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140001ccc
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002aec8
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14002aafc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
cmovne rbx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1ff
lea r8, [rbp + 0x70]
mov edx, 0x2328
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadStringW]
dec eax
cmp eax, 0x1fe
ja 0x14002aec8
call fcn.140002600
mov rdi, qword [rax]
mov dword [rsp + 0x50], 0x114
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14002ad20
cmp dword [rsp + 0x54], 5
ja 0x14002ab84
jne 0x14002ad20
cmp dword [rsp + 0x58], 0
jbe 0x14002ad20
lea rcx, [rsp + 0x30]
call fcn.140001ccc
mov rcx, rax
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x14002aec8
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002abb7
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi], rbx
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x14002aeb7
lea r12, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r12, qword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
mov r14, qword [rdi + 0x18]
cmp r15, r14
ja 0x14002ac19
mov rsi, rdi
cmp r14, 8
jb 0x14002abf7
mov rsi, qword [rdi]
mov qword [rdi + 0x10], r15
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rbx + rsi], ax
jmp 0x14002aeb5
movabs rbx, 0x7ffffffffffffffe
cmp r15, rbx
ja 0x14002af60
mov rcx, r15
or rcx, 7
cmp rcx, rbx
ja 0x14002ac57
mov rdx, r14
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r14, rax
ja 0x14002ac57
lea rax, [rdx + r14]
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 0x14002ac7a
mov rdx, r8
jmp 0x14002ac83
cmp rdx, 0x1000
jb 0x14002acad
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.14001f5e4
test rax, rax
je 0x14002aca6
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14002acbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdx, rdx
je 0x14002acbd
mov rcx, rdx
call fcn.14001f5e4
mov rsi, rax
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xor eax, eax
mov word [rsi + rbx], ax
cmp r14, 8
jb 0x14002aeb2
mov rcx, qword [rdi]
lea rdx, [r14*2 + 2]
cmp rdx, 0x1000
jb 0x14002aead
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14002aeaa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rsp + 0x30]
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14002aec8
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002ad4d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi], rbx
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x14002aeb7
lea r12, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r12, qword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
mov r14, qword [rdi + 0x18]
cmp r15, r14
ja 0x14002adaf
mov rsi, rdi
cmp r14, 8
jb 0x14002ad8d
mov rsi, qword [rdi]
mov qword [rdi + 0x10], r15
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rsi + rbx], ax
jmp 0x14002aeb5
movabs rbx, 0x7ffffffffffffffe
cmp r15, rbx
ja 0x14002af5a
mov rcx, r15
or rcx, 7
cmp rcx, rbx
ja 0x14002aded
mov rdx, r14
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r14, rax
ja 0x14002aded
lea rax, [r14 + 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 0x14002ae10
mov rdx, r8
jmp 0x14002ae19
cmp rdx, 0x1000
jb 0x14002ae43
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.14001f5e4
test rax, rax
je 0x14002ae3c
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14002ae53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdx, rdx
je 0x14002ae53
mov rcx, rdx
call fcn.14001f5e4
mov rsi, rax
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xor eax, eax
mov word [rsi + rbx], ax
cmp r14, 8
jb 0x14002aeb2
mov rcx, qword [rdi]
lea rdx, [r14*2 + 2]
cmp rdx, 0x1000
jb 0x14002aead
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14002aeaa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001f8d4
mov qword [rdi], rsi
xor esi, esi
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140001d5c
mov bl, 1
jmp 0x14002aeca
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.140004cd0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14002af1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002af15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002af15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f8d4
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
movzx eax, bl
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14001f5c0
mov rbx, qword [rsp + 0x5d8]
add rsp, 0x580
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400024e0
nop
call fcn.1400024e0
int3