Function at 0x1400a1300
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x78], rdx
xor r14d, r14d
mov dword [rsp + 0x74], r14d
mov qword [r9 + 0x10], r14
cmp qword [r9 + 0x18], 8
jb 0x1400a1355
mov rax, qword [r9]
jmp 0x1400a1358
mov rax, r9
mov word [rax], r14w
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp - 0x30]
call fcn.1400c2130
mov dword [rbp - 0x30], 0x11c
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400a13d5
mov ecx, dword [rbp - 0x2c]
cmp ecx, 6
ja 0x1400a13ab
jne 0x1400a13d8
cmp dword [rbp - 0x28], 2
jb 0x1400a13d8
mov dword [rsp + 0x70], r14d
mov dword [rbp - 0x78], r14d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call fcn.140068550
test al, al
je 0x1400a13d5
mov ecx, dword [rsp + 0x70]
mov dword [rbp - 0x2c], ecx
mov eax, dword [rbp - 0x78]
mov dword [rbp - 0x28], eax
jmp 0x1400a13d8
mov ecx, dword [rbp - 0x2c]
mov al, 1
movzx eax, al
cmp ecx, 6
cmovae eax, r14d
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov dword [rsp + 0x74], 1
test al, al
je 0x1400a1651
cmp qword [rsi + 0x18], 8
jb 0x1400a140e
mov rsi, qword [rsi]
mov r8, rsi
lea rdx, str._s_shell
lea rcx, [rbp - 0x50]
call fcn.140061ab0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8, 0xffffffff80000000
lea rdx, [rsp + 0x50]
call fcn.1400910c0
mov rdi, rax
cmp rbx, rax
je 0x1400a14a6
cmp qword [rbx + 0x18], 8
jb 0x1400a148a
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rdi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a14b8
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a14de
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 0x10], 0
jne 0x1400a150e
mov r8d, 4
lea rdx, str.open
mov rcx, rbx
call fcn.140006900
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140006b90
nop
mov r8d, 1
lea rdx, [0x1400f6034]
lea rcx, [rbp - 0x70]
call fcn.14000b750
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14000bb90
mov r8d, 8
lea rdx, str.command
lea rcx, [rbp - 0x70]
call fcn.14000b750
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
mov r8, 0xffffffff80000000
lea rdx, [rsp + 0x50]
call fcn.1400910c0
mov rdi, rax
cmp rbx, rax
je 0x1400a1600
cmp qword [rbx + 0x18], 8
jb 0x1400a15e4
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rdi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a1612
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a1638
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
jmp 0x1400a1c62
cmp qword [rsi + 0x18], 8
jb 0x1400a165b
mov rsi, qword [rsi]
mov r9, rsi
lea r8, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations
lea rdx, str._s_sUserChoice
lea rcx, [rbp - 0x50]
call fcn.140061ab0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
mov r8d, 6
lea rdx, str.ProgId
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8, 0xffffffff80000001
lea rdx, [rsp + 0x50]
call fcn.1400910c0
mov rsi, rax
cmp rbx, rax
je 0x1400a16fd
cmp qword [rbx + 0x18], 8
jb 0x1400a16e1
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rsi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a170f
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a1735
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 0x10], 0
jne 0x1400a1833
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
mov r8d, 6
lea rdx, str.ProgId
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8, 0xffffffff80000002
lea rdx, [rsp + 0x50]
call fcn.1400910c0
mov rsi, rax
cmp rbx, rax
je 0x1400a17dc
cmp qword [rbx + 0x18], 8
jb 0x1400a17c0
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rsi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a17ee
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a1814
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 0x10], 0
je 0x1400a1d67
cmp rdi, rbx
je 0x1400a184a
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140006b90
cmp qword [rdi + 0x18], 8
jb 0x1400a1854
mov rdi, qword [rdi]
mov r8, rdi
lea rdx, str.SoftwareClasses_s_shell
lea rcx, [rbp - 0x50]
call fcn.140061ab0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8, 0xffffffff80000001
lea rdx, [rsp + 0x50]
call fcn.1400910c0
mov rdi, rax
cmp rbx, rax
je 0x1400a18ec
cmp qword [rbx + 0x18], 8
jb 0x1400a18d0
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rdi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a18fe
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a1924
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 0x10], 0
jne 0x1400a1954
mov r8d, 4
lea rdx, str.open
mov rcx, rbx
call fcn.140006900
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140006b90
nop
mov r8d, 1
lea rdx, [0x1400f6034]
lea rcx, [rbp - 0x70]
call fcn.14000b750
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14000bb90
mov r8d, 8
lea rdx, str.command
lea rcx, [rbp - 0x70]
call fcn.14000b750
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
mov r8, 0xffffffff80000001
lea rdx, [rsp + 0x50]
call fcn.1400910c0
mov rdi, rax
cmp rbx, rax
je 0x1400a1a46
cmp qword [rbx + 0x18], 8
jb 0x1400a1a2a
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rdi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a1a58
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a1a7e
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 0x10], 0
jne 0x1400a1c62
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8, 0xffffffff80000002
lea rdx, [rsp + 0x50]
call fcn.1400910c0
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000afe0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a1b0e
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a1b34
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 0x10], 0
jne 0x1400a1b64
mov r8d, 4
lea rdx, str.open
mov rcx, rbx
call fcn.140006900
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140006b90
mov r8d, 1
lea rdx, [0x1400f6034]
lea rcx, [rbp - 0x70]
call fcn.14000b750
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14000bb90
mov r8d, 8
lea rdx, str.command
lea rcx, [rbp - 0x70]
call fcn.14000b750
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
mov r8, 0xffffffff80000002
lea rdx, [rsp + 0x50]
call fcn.1400910c0
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000afe0
nop
cmp qword [rsp + 0x68], 8
jb 0x1400a1c28
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x48], 8
jb 0x1400a1c4e
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbp - 0x58], 8
jb 0x1400a1c72
mov rcx, qword [rbp - 0x70]
call fcn.1400bd20c
mov word [rbp - 0x70], r14w
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 7
cmp qword [rbx + 0x10], 0
je 0x1400a1d67
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
mov r8d, 0xb
lea rdx, str.Shell32.dll
lea rcx, [rsp + 0x30]
call fcn.140006900
nop
call fcn.14007a6e0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14007a790
mov rdi, rax
cmp qword [rsp + 0x48], 8
jb 0x1400a1ceb
mov rcx, qword [rsp + 0x30]
call fcn.1400bd20c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
test rdi, rdi
je 0x1400a1d67
lea rdx, str.CommandLineToArgvW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a1d67
mov dword [rbp - 0x78], r14d
cmp qword [rbx + 0x18], 8
jb 0x1400a1d29
mov rcx, qword [rbx]
jmp 0x1400a1d2c
mov rcx, rbx
lea rdx, [rbp - 0x78]
call rax
mov rdi, rax
test rax, rax
je 0x1400a1d50
mov rdx, qword [rax]
mov rcx, rbx
call fcn.1400065c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400a1d67
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x1400a1d60
mov rax, qword [rbx]
jmp 0x1400a1d63
mov rax, rbx
mov word [rax], r14w
cmp qword [rbp - 0x38], 8
jb 0x1400a1d77
mov rcx, qword [rbp - 0x50]
call fcn.1400bd20c
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
mov rax, rbx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400bcae0
add rsp, 0x200
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret