Function at 0x1400358a0
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 [0x14004f018]
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 0x140035ca3
cmp dword [rsp + 0x54], 5
jne 0x140035ca3
cmp dword [rsp + 0x58], 1
jne 0x140035ca3
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 0x140035990
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 0x140035aa2
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x140035d38
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x1400359ce
mov rdx, rsi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rsi, rax
ja 0x1400359ce
lea rax, [rdx + rsi]
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 0x1400359f1
mov rdx, r8
jmp 0x1400359fa
cmp rdx, 0x1000
jb 0x140035a24
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.140025ae4
test rax, rax
je 0x140035a1d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140035a39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdx, rdx
je 0x140035a36
mov rcx, rdx
call fcn.140025ae4
mov rdi, rax
jmp 0x140035a39
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 0x140035a9d
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035a98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035a98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x28]
call fcn.140002e74
mov rsi, rax
cmp rax, 1
jb 0x140035b41
mov rbx, r12
test rax, rax
je 0x140035b05
lea rcx, [rsp + 0x28]
call fcn.140002de0
mov rdi, rax
nop
cmp qword [rdi + 0x10], rbx
jbe 0x140035d44
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140035ae7
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 0x140035b05
inc rbx
cmp rbx, rsi
jb 0x140035ad0
test rbx, rbx
je 0x140035b41
mov r8, qword [rsp + 0x38]
cmp r8, rbx
cmovb rbx, r8
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
sub r8, rbx
mov qword [rsp + 0x38], r8
lea r8, [r8*2 + 2]
lea rdx, [rcx + rbx*2]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
lea rcx, [rsp + 0x28]
call fcn.140002e74
mov r15, rax
cmp rax, 1
jb 0x140035c13
mov rdi, rax
test rax, rax
je 0x140035c13
lea rcx, [rsp + 0x28]
call fcn.140002de0
mov rbx, rax
lea r14, [rdi*2 - 2]
nop dword [rax]
lea rsi, [rdi - 1]
cmp qword [rbx + 0x10], rsi
jbe 0x140035d32
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140035b9b
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 0x140035bbe
mov rdi, rsi
sub r14, 2
test rsi, rsi
jne 0x140035b80
cmp rdi, r15
jae 0x140035c13
mov r8, qword [rsp + 0x38]
cmp r8, rdi
jb 0x140035d3e
sub r15, rdi
mov rax, r8
sub rax, rdi
cmp rax, r15
cmovb r15, rax
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
lea rcx, [rax + rdi*2]
sub r8, r15
mov qword [rsp + 0x38], r8
sub r8, rdi
lea r8, [r8*2 + 2]
lea rdx, [rcx + r15*2]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
jb 0x140035c2a
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140035c3e
lea rdx, str.Service_Pack_1
call fcn.1400050c0
test al, al
jne 0x140035cd2
cmp qword [rsp + 0x38], 0
je 0x140035cd2
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140035c8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035c8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035c8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
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.140025ac0
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 0x140035d17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035d12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035d12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
mov al, 1
jmp 0x140035ca5
call fcn.140004070
nop
call fcn.140003280
nop
call fcn.140004070
int3
call fcn.140004070
int3